This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix MidnightBSD hints file for 0.4-RELEASE
[perl5.git] / hints / midnightbsd.sh
index 13a5335..1c0ea2f 100644 (file)
@@ -6,17 +6,17 @@ esac
 libswanted=`echo $libswanted | sed 's/ malloc / /'`
 
 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'