From a88bb2b1cbd83973de1a3bf9525feee2e461a9df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Wed, 18 Aug 2010 18:21:50 +0200 Subject: [PATCH] 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 file changed, 4 insertions(+) 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 - 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á - 4:5.12.1-129 - 617956 move perlxs* docs files into perl-devel