diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2007-01-29 00:50:46 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2007-01-29 00:50:46 +0000 |
commit | 59dcc3a13d012c7790f3412ad916ebb6c5eeadb7 (patch) | |
tree | 1ad06840f7126210a35728d570da72e14d940ae1 /lang/perl5.10 | |
parent | ff0782f76d4e26f5351b18b91b8814836d25df13 (diff) | |
download | ports-59dcc3a13d012c7790f3412ad916ebb6c5eeadb7.tar.gz ports-59dcc3a13d012c7790f3412ad916ebb6c5eeadb7.zip |
Notes
Diffstat (limited to 'lang/perl5.10')
-rw-r--r-- | lang/perl5.10/files/patch-freebsd.sh | 41 |
1 files changed, 28 insertions, 13 deletions
diff --git a/lang/perl5.10/files/patch-freebsd.sh b/lang/perl5.10/files/patch-freebsd.sh index 6c5e9d7b0118..9fa2966a2e8e 100644 --- a/lang/perl5.10/files/patch-freebsd.sh +++ b/lang/perl5.10/files/patch-freebsd.sh @@ -1,6 +1,6 @@ ---- hints/freebsd.sh.orig Wed Mar 24 22:47:33 2004 -+++ hints/freebsd.sh Sun Jan 30 23:39:33 2005 -@@ -88,6 +88,8 @@ case "$osvers" in +--- hints/freebsd.sh.orig Wed Mar 24 21:47:33 2004 ++++ hints/freebsd.sh Mon Jan 29 00:30:11 2007 +@@ -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 +103,10 @@ case "$osvers" in +@@ -102,6 +104,10 @@ ;; esac libswanted=`echo $libswanted | sed 's/ malloc / /'` @@ -20,16 +20,31 @@ ;; esac -@@ -119,7 +123,7 @@ case "$osvers" in - if [ x$objformat = xelf ]; then - libpth="/usr/lib /usr/local/lib" - glibpth="/usr/lib /usr/local/lib" +@@ -116,17 +122,17 @@ + + *) + objformat=`/usr/bin/objformat` +- if [ x$objformat = xelf ]; then +- libpth="/usr/lib /usr/local/lib" +- glibpth="/usr/lib /usr/local/lib" - ldflags="-Wl,-E " -+ ldflags="%%PTHREAD_LIBS%% -Wl,-E" - lddlflags="-shared " - else +- lddlflags="-shared " +- else ++ if [ x$objformat = xaout ]; then if [ -e /usr/lib/aout ]; then -@@ -136,7 +140,7 @@ case "$osvers" in + libpth="/usr/lib/aout /usr/local/lib /usr/lib" + glibpth="/usr/lib/aout /usr/local/lib /usr/lib" + fi ++ else + lddlflags='-Bshareable' ++ libpth="/usr/lib /usr/local/lib" ++ glibpth="/usr/lib /usr/local/lib" ++ ldflags=" -Wl,-E" ++ lddlflags="-shared " + fi + cccdlflags='-DPIC -fPIC' + ;; +@@ -136,7 +142,7 @@ 0*|1*|2*|3*) ;; *) @@ -38,7 +53,7 @@ if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then usenm=false fi -@@ -183,7 +187,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. |