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.
This commit is contained in:
Petr Písař 2010-08-18 18:21:50 +02:00
parent 85731697d5
commit a88bb2b1cb

View File

@ -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@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@redhat.com> - 4:5.12.1-129
- 617956 move perlxs* docs files into perl-devel