summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/perl/files/perl-5.8.8-fbsdhints.patch')
-rw-r--r--dev-lang/perl/files/perl-5.8.8-fbsdhints.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-lang/perl/files/perl-5.8.8-fbsdhints.patch b/dev-lang/perl/files/perl-5.8.8-fbsdhints.patch
index 5f888346ae43..7dc1a65b9e6e 100644
--- a/dev-lang/perl/files/perl-5.8.8-fbsdhints.patch
+++ b/dev-lang/perl/files/perl-5.8.8-fbsdhints.patch
@@ -22,6 +22,30 @@ Index: perl-5.8.8/hints/freebsd.sh
;;
esac
+@@ -116,17 +122,17 @@ case "$osvers" in
+
+ *)
+ objformat=`/usr/bin/objformat`
+- if [ x$objformat = xelf ]; then
+- libpth="/usr/lib /usr/local/lib"
+- glibpth="/usr/lib /usr/local/lib"
+- ldflags="-Wl,-E "
+- lddlflags="-shared "
+- else
++ if [ x$objformat = xaout ]; then
+ if [ -e /usr/lib/aout ]; then
+ libpth="/usr/lib/aout /usr/local/lib /usr/lib"
+ glibpth="/usr/lib/aout /usr/local/lib /usr/lib"
+ fi
+ lddlflags='-Bshareable'
++ else
++ libpth="/usr/lib /usr/local/lib"
++ glibpth="/usr/lib /usr/local/lib"
++ ldflags="-Wl,-E"
++ lddlflags="-shared "
+ fi
+ cccdlflags='-DPIC -fPIC'
+ ;;
@@ -137,7 +143,7 @@ case "$osvers" in
*)