SPECS: perl.spec - better fix

arekm arekm at pld-linux.org
Sat Feb 10 20:23:47 CET 2007


Author: arekm                        Date: Sat Feb 10 19:23:47 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- better fix

---- Files affected:
SPECS:
   perl.spec (1.350 -> 1.351) 

---- Diffs:

================================================================
Index: SPECS/perl.spec
diff -u SPECS/perl.spec:1.350 SPECS/perl.spec:1.351
--- SPECS/perl.spec:1.350	Sat Feb 10 19:38:58 2007
+++ SPECS/perl.spec	Sat Feb 10 20:23:41 2007
@@ -94,10 +94,6 @@
 %define		__perl		%{_builddir}/perl-%{version}/runperl
 %define		__perl_provides %{__perl} %{SOURCE2}
 
-%define filterout_ld -Wl,--as-needed
-# Otherwise `perl -MExtUtils::Embed -e ldopts` includes -Wl,--as-needed
-# which is then forced upon anyone embedding perl.
-
 %description
 Perl is an interpreted language optimized for scanning arbitrary text
 files, extracting information from those text files, and printing
@@ -836,6 +832,8 @@
 mv $RPM_BUILD_ROOT%{perl_privlib}/auto/POSIX/SigAction \
 	$RPM_BUILD_ROOT%{perl_archlib}/auto/POSIX
 
+sed -i -e 's#^\(ld.*=.*\)-Wl,--as-needed\(.*\)#\1 \2#g' $RPM_BUILD_ROOT%{perl_archlib}/Config*.pl
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -1420,6 +1418,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.351  2007/02/10 19:23:41  arekm
+- better fix
+
 Revision 1.350  2007/02/10 18:38:58  qrczak
 - Filter-out -Wl,--as-needed. Otherwise  `perl -MExtUtils::Embed -e ldopts`
   includes -Wl,--as-needed which is then forced upon anyone embedding perl.
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/perl.spec?r1=1.350&r2=1.351&f=u



More information about the pld-cvs-commit mailing list