]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - perl/patches/perl-5.8.8-rpath-make.patch
Move all packages to root.
[people/arne_f/ipfire-3.x.git] / perl / patches / perl-5.8.8-rpath-make.patch
CommitLineData
4b63ca5e
SS
1--- perl-5.8.8-RC1/Makefile.SH.makerpath 2006-01-20 16:41:26.000000000 -0500
2+++ perl-5.8.8-RC1/Makefile.SH 2006-01-20 16:41:57.000000000 -0500
3@@ -125,26 +125,10 @@
4 esac
5
6 case "$osname" in
7- linux)
8- # If there is a pre-existing $libperl from a previous
9- # installation, Linux needs to use LD_PRELOAD to
10- # override the LD_LIBRARY_PATH setting. See the
11- # INSTALL file, under "Building a shared perl library".
12- # If there is no pre-existing $libperl, we don't need
13- # to do anything further.
14- if test -f $archlib/CORE/$libperl; then
15- rm -f preload
16- cat <<'EOT' > preload
17-#! /bin/sh
18-lib=$1
19-shift
20-test -r $lib && export LD_PRELOAD="$lib $LD_PRELOAD"
21-exec "$@"
22-EOT
23- chmod 755 preload
24- ldlibpth="$ldlibpth `pwd`/preload `pwd`/$libperl"
25- fi
26+ linux*)
27+ ldlibpth="LD_PRELOAD=`pwd`/libperl.so $ldlibpth"
28 ;;
29+
30 os390) test -f /bin/env && ldlibpth="/bin/env $ldlibpth"
31 ;;
32 esac