diff options
author | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2013-07-07 13:55:29 +0100 |
---|---|---|
committer | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2013-07-07 13:55:29 +0100 |
commit | b2b69a966b47abd2cb4c320da60619b27c6c8abf (patch) | |
tree | b46546390fdb4e33a9966c39e66e080508d1205b /hints | |
parent | 9a2ee86b20e06a3f64ee243168245198de7e07e4 (diff) | |
download | perl-b2b69a966b47abd2cb4c320da60619b27c6c8abf.tar.gz |
Fix MidnightBSD hints file for 0.4-RELEASE
0.4 has no /usr/bin/objformat, so the hints file was
falling through to configure for aout with fatal consequences.
Confirmed that the objformat in 0.3 warns that it is deprecated.
Have switched around the logic of the checks so that it will always
configure for elf, using aout is explicitly detected.
Diffstat (limited to 'hints')
-rw-r--r-- | hints/midnightbsd.sh | 12 |
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' |