This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Default to ELF on FreeBSD when objformat is not there
authorAnton Berezin <tobez@tobez.org>
Thu, 8 Mar 2007 12:08:45 +0000 (13:08 +0100)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 8 Mar 2007 11:17:21 +0000 (11:17 +0000)
Message-ID: <20070308110845.GA24332@heechee.tobez.org>

p4raw-id: //depot/perl@30512

hints/freebsd.sh

index a506238..8bfb742 100644 (file)
@@ -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'
         ;;