From: Anton Berezin Date: Thu, 8 Mar 2007 12:08:45 +0000 (+0100) Subject: Default to ELF on FreeBSD when objformat is not there X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2440f57eb96c4329967f5d7bc390ffabf1449b9c;p=p5sagit%2Fp5-mst-13.2.git Default to ELF on FreeBSD when objformat is not there Message-ID: <20070308110845.GA24332@heechee.tobez.org> p4raw-id: //depot/perl@30512 --- diff --git a/hints/freebsd.sh b/hints/freebsd.sh index a506238..8bfb742 100644 --- a/hints/freebsd.sh +++ b/hints/freebsd.sh @@ -116,17 +116,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' ;;