[icu] Resolves: rhbz#681941 don't link unneccessary -lm, etc
Caolan McNamara
caolanm at fedoraproject.org
Tue Mar 8 20:41:57 UTC 2011
commit 07a40ef8ebc7d41589698425f6649afca0b7df65
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Mar 8 20:41:51 2011 +0000
Resolves: rhbz#681941 don't link unneccessary -lm, etc
icu.rhbz681941.extralinklm.patch | 19 -------------------
icu.spec | 19 ++++++++++++++-----
2 files changed, 14 insertions(+), 24 deletions(-)
---
diff --git a/icu.spec b/icu.spec
index 4353f4b..162d221 100644
--- a/icu.spec
+++ b/icu.spec
@@ -1,6 +1,6 @@
Name: icu
Version: 4.6
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: International Components for Unicode
Group: Development/Tools
License: MIT and UCD and Public Domain
@@ -12,7 +12,6 @@ Requires: lib%{name} = %{version}-%{release}
Patch1: icu.8198.revert.icu5431.patch
Patch2: icu.8320.freeserif.crash.patch
-Patch3: icu.rhbz681941.extralinklm.patch
%description
Tools and utilities for developing with icu.
@@ -54,7 +53,6 @@ BuildArch: noarch
%setup -q -n %{name}
%patch1 -p2 -R -b .icu8198.revert.icu5431.patch
%patch2 -p1 -b .icu8320.freeserif.crash.patch
-%patch3 -p1 -b .rhbz681941.extralinklm.patch
%build
cd source
@@ -63,7 +61,16 @@ CFLAGS='%optflags -fno-strict-aliasing'
CXXFLAGS='%optflags -fno-strict-aliasing'
%configure --with-data-packaging=library --disable-samples
#rhbz#225896
-sed -i -- "s/-nodefaultlibs -nostdlib//" config/mh-linux
+sed -i 's|-nodefaultlibs -nostdlib||' config/mh-linux
+#rhbz#681491
+sed -i 's|^LIBS =.*|LIBS = -L../lib -licuuc -lpthread -lm|' i18n/Makefile
+sed -i 's|^LIBS =.*|LIBS = -nostdlib -L../lib -licuuc -licui18n -lc|' io/Makefile
+sed -i 's|^LIBS =.*|LIBS = -nostdlib -L../lib -licuuc -lc|' layout/Makefile
+sed -i 's|^LIBS =.*|LIBS = -nostdlib -L../lib -licuuc -licule -lc|' layoutex/Makefile
+sed -i 's|^LIBS =.*|LIBS = -nostdlib -L../../lib -licutu -licuuc -lc|' tools/ctestfw/Makefile
+sed -i 's|^LIBS =.*|LIBS = -nostdlib -L../../lib -licui18n -licuuc -lpthread -lc|' tools/toolutil/Makefile
+
+
make # %{?_smp_mflags} # -j(X>1) may "break" man pages as of 3.2, b.f.u #2357
make doc
@@ -133,6 +140,9 @@ rm -rf $RPM_BUILD_ROOT
%doc source/__docs/%{name}/html/*
%changelog
+* Tue Mar 08 2011 Caolán McNamara <caolanm at redhat.com> - 4.6-2
+- Resolves: rhbz#681941 don't link unneccessary -lm, etc.
+
* Mon Mar 07 2011 Caolán McNamara <caolanm at redhat.com> - 4.6-1
- latest version
- upgrade includes a .pc now of its own, drop ours
@@ -141,7 +151,6 @@ rm -rf $RPM_BUILD_ROOT
- drop integrated icu.7972.buildfix.patch
- drop integrated icu.7932.doublecompare.patch
- drop integrated icu.8011.buildfix.patch
-- Resolves: rhbz#681941 don't link unneccessary -lm
* Fri Feb 11 2011 Caolán McNamara <caolanm at redhat.com> - 4.4.2-8
- Resolves: rhbz#674328 yet more ways that freeserif crashes libicu
More information about the scm-commits
mailing list