summaryrefslogtreecommitdiff
path: root/lang/perl5.12/files/patch-freebsd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lang/perl5.12/files/patch-freebsd.sh')
-rw-r--r--lang/perl5.12/files/patch-freebsd.sh39
1 files changed, 12 insertions, 27 deletions
diff --git a/lang/perl5.12/files/patch-freebsd.sh b/lang/perl5.12/files/patch-freebsd.sh
index ca8fa5a82cfb..4587e5338e7f 100644
--- a/lang/perl5.12/files/patch-freebsd.sh
+++ b/lang/perl5.12/files/patch-freebsd.sh
@@ -1,6 +1,6 @@
---- hints/freebsd.sh.orig Wed Mar 24 22:47:33 2004
-+++ hints/freebsd.sh Mon Feb 19 20:53:50 2007
-@@ -88,6 +88,8 @@ case "$osvers" in
+--- hints/freebsd.sh
++++ hints/freebsd.sh
+@@ -88,6 +88,8 @@
esac
libswanted=`echo $libswanted | sed 's/ malloc / /'`
libswanted=`echo $libswanted | sed 's/ bind / /'`
@@ -9,7 +9,7 @@
# iconv gone in Perl 5.8.1, but if someone compiles 5.8.0 or earlier.
libswanted=`echo $libswanted | sed 's/ iconv / /'`
d_setregid='define'
-@@ -102,6 +104,10 @@ case "$osvers" in
+@@ -102,6 +104,10 @@
;;
esac
libswanted=`echo $libswanted | sed 's/ malloc / /'`
@@ -20,31 +20,16 @@
;;
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"
+@@ -125,7 +131,7 @@
+ else
+ 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="%%PTHREAD_LIBS%% -Wl,-E"
-+ lddlflags="-shared "
++ ldflags="%%PTHREAD_LIBS%% -Wl,-E "
+ lddlflags="-shared "
fi
cccdlflags='-DPIC -fPIC'
- ;;
-@@ -136,7 +142,7 @@ case "$osvers" in
+@@ -136,7 +142,7 @@
0*|1*|2*|3*) ;;
*)
@@ -53,7 +38,7 @@
if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then
usenm=false
fi
-@@ -183,7 +189,9 @@ esac
+@@ -183,7 +189,9 @@
# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.