[perl/f13/master] Add "-Wl,--enable-new-dtags" to linker

Petr Pisar ppisar at fedoraproject.org
Thu Aug 19 16:21:35 UTC 2010


commit dbf7468bbab5129848df1a58bf14c65fbe0e4a8f
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu Aug 19 17:55:53 2010 +0200

    Add "-Wl,--enable-new-dtags" to linker
    
    Without RUNPATH in .dynstr section in perl binary, tested perl will
    link against old library and not only it will test old library,
    it will crash probably too.

 perl.spec |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/perl.spec b/perl.spec
index 2ba2f25..44693f1 100644
--- a/perl.spec
+++ b/perl.spec
@@ -8,7 +8,7 @@
 
 Name:           perl
 Version:        %{perl_version}
-Release:        117%{?dist}
+Release:        118%{?dist}
 Epoch:          %{perl_epoch}
 Summary:        Practical Extraction and Report Language
 Group:          Development/Languages
@@ -990,6 +990,7 @@ echo "RPM Build arch: %{_arch}"
 %define archlib		%{_libdir}/perl5
 
 /bin/sh Configure -des -Doptimize="$RPM_OPT_FLAGS" \
+        -Dccdlflags="-Wl,--enable-new-dtags" \
         -DDEBUGGING=-g \
         -Dversion=%{perl_version} \
         -Dmyhostname=localhost \
@@ -1804,6 +1805,11 @@ rm -rf $RPM_BUILD_ROOT
 
 # Old changelog entries are preserved in CVS.
 %changelog
+* Wed Aug 19 2010 Petr Pisar <ppisar at redhat.com> - 4:5.10.1-118
+- Add "-Wl,--enable-new-dtags" to linker to allow to override perl's rpath by
+  LD_LIBRARY_PATH used in tests. Otherwise tested perl would link to old
+  in-system libperl.so.
+
 * Thu Aug 12 2010  Marcela Mašláňová <mmaslano at redhat.com> - 4:5.10.1-117.1
 - 622896 remove paths, which were in INC duplicated. The rest of duplicated
  must be here because it's always different macro: privlib/vendorlib.


More information about the scm-commits mailing list