summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/hints
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>1998-09-09 13:10:47 +0000
committermarkm <markm@FreeBSD.org>1998-09-09 13:10:47 +0000
commit02d12b26cbcc864742890fef9b617df3364c2991 (patch)
tree9b2ab7a754bb3c26e7de594b4c7f1e7ff4f66373 /contrib/perl5/hints
parentd2c322d7f61dcae76e6fc0f30d2c6d329e820691 (diff)
downloadFreeBSD-src-02d12b26cbcc864742890fef9b617df3364c2991.zip
FreeBSD-src-02d12b26cbcc864742890fef9b617df3364c2991.tar.gz
Minimalist fixes to make BMaked perl build.
Diffstat (limited to 'contrib/perl5/hints')
-rw-r--r--contrib/perl5/hints/freebsd.sh20
1 files changed, 16 insertions, 4 deletions
diff --git a/contrib/perl5/hints/freebsd.sh b/contrib/perl5/hints/freebsd.sh
index 0f2a5a5..0dbe323 100644
--- a/contrib/perl5/hints/freebsd.sh
+++ b/contrib/perl5/hints/freebsd.sh
@@ -23,6 +23,10 @@
# Andy Dougherty <doughera@lafcol.lafayette.edu>
# Date: Tue Mar 10 16:07:00 EST 1998
#
+# Support for FreeBSD/ELF
+# Ollivier Robert <roberto@keltia.freenix.fr>
+# Date: Wed Sep 2 16:22:12 CEST 1998
+#
# The two flags "-fpic -DPIC" are used to indicate a
# will-be-shared object. Configure will guess the -fpic, (and the
# -DPIC is not used by perl proper) but the full define is included to
@@ -95,12 +99,20 @@ esac
case "$osvers" in
0.*|1.0*) ;;
-3.0*) if [ -e /usr/lib/aout ]; then
- libpth="/usr/lib/aout /usr/local/lib /usr/lib"
- glibpth="/usr/lib/aout /usr/local/lib /usr/lib"
+3.0*) 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 [ -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'
fi
cccdlflags='-DPIC -fpic'
- lddlflags='-Bshareable'
;;
*) cccdlflags='-DPIC -fpic'
OpenPOWER on IntegriCloud