SPECS: ipp2p.spec - use %{rpmldflags} instead of hardcoding ld --a...

glen glen at pld-linux.org
Fri Feb 15 15:14:46 CET 2008


Author: glen                         Date: Fri Feb 15 14:14:46 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %{rpmldflags} instead of hardcoding ld --as-needed

---- Files affected:
SPECS:
   ipp2p.spec (1.69 -> 1.70) 

---- Diffs:

================================================================
Index: SPECS/ipp2p.spec
diff -u SPECS/ipp2p.spec:1.69 SPECS/ipp2p.spec:1.70
--- SPECS/ipp2p.spec:1.69	Mon Feb 11 14:00:44 2008
+++ SPECS/ipp2p.spec	Fri Feb 15 15:14:41 2008
@@ -148,10 +148,13 @@
 
 %build
 %if %{with userspace}
-IPTABLES_VERSION="%{iptables_ver}"
-%{__cc} %{rpmcflags} -DIPTABLES_VERSION=\"$IPTABLES_VERSION\" -fPIC -c libipt_ipp2p.c
-#vim: "
-ld --as-needed -shared -o libipt_ipp2p.so libipt_ipp2p.o
+%{__cc} %{rpmcflags} -DIPTABLES_VERSION='"%{iptables_ver}"' -fPIC -c libipt_ipp2p.c
+#%{__cc} %{rpmldflags} -shared libipt_ipp2p.o -o libipt_ipp2p.so
+# using CC issues:
+#libipt_ipp2p.o(.text+0x720): In function `_init':
+#libipt_ipp2p.c: multiple definition of `_init'
+#/usr/lib/gcc-lib/i686-pld-linux/3.3.6/../../../crti.o(.init+0x0):/home/users/builder/rpm/BUILD/glibc-2.3.6/builddir/csu/crti.S:12: first defined here
+%{__ld} %(echo %{rpmldflags} | sed -e 's/-Wl,\(.*\)/\1/g') -shared -o libipt_ipp2p.so libipt_ipp2p.o
 %endif
 
 %if %{with kernel}
@@ -198,6 +201,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.70  2008-02-15 14:14:41  glen
+- use %{rpmldflags} instead of hardcoding ld --as-needed
+
 Revision 1.69  2008-02-11 13:00:44  arekm
 - rel 12
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/ipp2p.spec?r1=1.69&r2=1.70&f=u



More information about the pld-cvs-commit mailing list