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

Petr Pisar ppisar at fedoraproject.org
Thu Aug 19 16:40:34 UTC 2010


commit 9a6f1d9cdc0994422035092e78c9c25757da25f7
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 a7e2a87..2e21a6e 100644
--- a/perl.spec
+++ b/perl.spec
@@ -7,7 +7,7 @@
 
 Name:           perl
 Version:        %{perl_version}
-Release:        92%{?dist}
+Release:        93%{?dist}
 Epoch:          %{perl_epoch}
 Summary:        Practical Extraction and Report Language
 Group:          Development/Languages
@@ -1122,6 +1122,7 @@ echo "RPM Build arch: %{_arch}"
 
 /bin/sh Configure -des -Doptimize="$RPM_OPT_FLAGS" \
 	-Accflags="-DPERL_USE_SAFE_PUTENV" \
+        -Dccdlflags="-Wl,--enable-new-dtags" \
         -Dversion=%{perl_version} \
         -Dmyhostname=localhost \
         -Dperladmin=root at localhost \
@@ -1971,6 +1972,11 @@ TMPDIR="$PWD/tmp" make test
 
 # Old changelog entries are preserved in CVS.
 %changelog
+* Wed Aug 19 2010 Petr Pisar <ppisar at redhat.com> - 4:5.10.0-93
+- 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.
+
 * Wed Jul 28 2010 Petr Pisar <ppisar at redhat.com> - 4:5.10.0-92
 - Fix taint.t test in Test::Harness
 


More information about the scm-commits mailing list