SPECS (AC-branch): ipp2p.spec - fix for: ld: unrecognized option '...

glen glen at pld-linux.org
Fri Feb 15 15:12:58 CET 2008


Author: glen                         Date: Fri Feb 15 14:12:58 2008 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
- fix for: ld: unrecognized option '-Wl,--as-needed'

---- Files affected:
SPECS:
   ipp2p.spec (1.52.2.24 -> 1.52.2.25) 

---- Diffs:

================================================================
Index: SPECS/ipp2p.spec
diff -u SPECS/ipp2p.spec:1.52.2.24 SPECS/ipp2p.spec:1.52.2.25
--- SPECS/ipp2p.spec:1.52.2.24	Fri Feb 15 14:55:15 2008
+++ SPECS/ipp2p.spec	Fri Feb 15 15:12:53 2008
@@ -25,7 +25,7 @@
 Summary(pl.UTF-8):	IPP2P - rozszerzenie filtra pakietów identyfikujące ruch P2P
 Name:		%{pname}%{_alt_kernel}
 Version:	0.8.2
-Release:	62
+Release:	63
 Epoch:		1
 License:	GPL
 Group:		Base/Kernel
@@ -182,7 +182,15 @@
 %build
 %if %{with userspace}
 %{__cc} %{rpmcflags} -DIPTABLES_VERSION='"%{iptables_ver}"' -fPIC -c libipt_ipp2p.c
-ld %{rpmldflags} -shared -o libipt_ipp2p.so libipt_ipp2p.o
+#%{__cc} %{rpmldflags} -shared libipt_ipp2p.o -o libipt_ipp2p.so
+# using CC issues:
+#libipt_ipp2p.o: In function `_init':
+#libipt_ipp2p.c:(.text+0x720): multiple definition of `_init'
+#/usr/bin/ld: size of bfd_vma > size of splay_tree types
+#/usr/bin/ld: BFD (Linux/GNU Binutils) 2.18.50.0.4.20080208 internal error, aborting at arange-set.c line 202 in arange_set_new
+#/usr/bin/ld: Please report this bug.
+#collect2: ld returned 1 exit status
+%{__ld} %(echo %{rpmldflags} | sed -e 's/-Wl,\(.*\)/\1/g') -shared -o libipt_ipp2p.so libipt_ipp2p.o
 %endif
 
 %if %{with kernel}
@@ -243,6 +251,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.52.2.25  2008-02-15 14:12:53  glen
+- fix for: ld: unrecognized option '-Wl,--as-needed'
+
 Revision 1.52.2.24  2008-02-15 13:55:15  glen
 - convert to utf8
 
================================================================

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



More information about the pld-cvs-commit mailing list