summaryrefslogtreecommitdiff
path: root/hints/midnightbsd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/midnightbsd.sh')
-rw-r--r--hints/midnightbsd.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/hints/midnightbsd.sh b/hints/midnightbsd.sh
index 13a5335468..1c0ea2f407 100644
--- a/hints/midnightbsd.sh
+++ b/hints/midnightbsd.sh
@@ -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'