[perl] Add "-Wl,--enable-new-dtags" to linker
Petr Pisar
ppisar at fedoraproject.org
Thu Aug 19 09:23:22 UTC 2010
commit a88bb2b1cbd83973de1a3bf9525feee2e461a9df
Author: Petr Písař <ppisar at redhat.com>
Date: Wed Aug 18 18:21:50 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 | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/perl.spec b/perl.spec
index 2546cd7..270b8c5 100644
--- a/perl.spec
+++ b/perl.spec
@@ -903,6 +903,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 \
@@ -1701,6 +1702,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Aug 18 2010 Petr Pisar <ppisar at redhat.com> - 4:5.12.1-130
- Run tests in parallel
+- 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.
* Mon Jul 26 2010 Marcela Mašláňová <mmaslano at redhat.com> - 4:5.12.1-129
- 617956 move perlxs* docs files into perl-devel
More information about the scm-commits
mailing list