summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorTodd Rinaldo <toddr@cpanel.net>2010-04-22 08:31:16 -0400
committerAndy Dougherty <doughera@lafayette.edu>2010-04-22 08:31:16 -0400
commita8ca765fc246174faebe5c6c3eae7c25b571ece2 (patch)
tree94da7b2973a91e790d8128af3a658586b429bd5f /hints
parent6d3855bd855c011550d9ba2222b9974ade8046c3 (diff)
downloadperl-a8ca765fc246174faebe5c6c3eae7c25b571ece2.tar.gz
FreeBSD 7+ no longer contains /usr/bin/objformat, so the following
(harmless) following error message is printed when hints are run: ./hints/freebsd.sh: /usr/bin/objformat: not found The reason for this is outlined in this email from Feb 2007 http://lists.freebsd.org/pipermail/freebsd-ports/2007-February/038523.html This patch just skips the objformat check for versions 7+ and assumes ELF. (The end result is unchanged, but the error message will not be printed anymore.)
Diffstat (limited to 'hints')
-rw-r--r--hints/freebsd.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/hints/freebsd.sh b/hints/freebsd.sh
index 7d543be045..44cf0ebaca 100644
--- a/hints/freebsd.sh
+++ b/hints/freebsd.sh
@@ -114,7 +114,7 @@ case "$osvers" in
lddlflags="-Bshareable $lddlflags"
;;
-*)
+3*|4*|5*|6*)
objformat=`/usr/bin/objformat`
if [ x$objformat = xaout ]; then
if [ -e /usr/lib/aout ]; then
@@ -130,6 +130,13 @@ case "$osvers" in
fi
cccdlflags='-DPIC -fPIC'
;;
+*)
+ libpth="/usr/lib /usr/local/lib"
+ glibpth="/usr/lib /usr/local/lib"
+ ldflags="-Wl,-E "
+ lddlflags="-shared "
+ cccdlflags='-DPIC -fPIC'
+ ;;
esac
case "$osvers" in