aboutsummaryrefslogtreecommitdiffstats
path: root/lang/perl5.6
diff options
context:
space:
mode:
authortobez <tobez@FreeBSD.org>2007-02-20 04:17:09 +0800
committertobez <tobez@FreeBSD.org>2007-02-20 04:17:09 +0800
commit24cd6a80f0d1eb6f0bff44533944e0d8b5e8c544 (patch)
tree98db6bd6656c0305fa23fff4ca4a1dfde2d20bda /lang/perl5.6
parent420e9129cb6fc7dd2099c57193a420352ce283d1 (diff)
downloadfreebsd-ports-graphics-24cd6a80f0d1eb6f0bff44533944e0d8b5e8c544.tar.gz
freebsd-ports-graphics-24cd6a80f0d1eb6f0bff44533944e0d8b5e8c544.tar.zst
freebsd-ports-graphics-24cd6a80f0d1eb6f0bff44533944e0d8b5e8c544.zip
Objformat fallout fix.
Diffstat (limited to 'lang/perl5.6')
-rw-r--r--lang/perl5.6/files/patch-freebsd.sh28
1 files changed, 26 insertions, 2 deletions
diff --git a/lang/perl5.6/files/patch-freebsd.sh b/lang/perl5.6/files/patch-freebsd.sh
index b7c1121c17e..a8bfe762ce5 100644
--- a/lang/perl5.6/files/patch-freebsd.sh
+++ b/lang/perl5.6/files/patch-freebsd.sh
@@ -1,5 +1,5 @@
---- hints/freebsd.sh.orig Mon Jan 31 22:08:10 2005
-+++ hints/freebsd.sh Mon Jan 31 22:10:17 2005
+--- hints/freebsd.sh.orig Wed Oct 15 22:26:16 2003
++++ hints/freebsd.sh Mon Feb 19 21:16:03 2007
@@ -101,7 +101,14 @@ case "$osvers" in
"") usemymalloc='n'
;;
@@ -15,3 +15,27 @@
;;
esac
+@@ -116,17 +123,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'
+ ;;