Assume ELF on FreeBSD if objformat doesn't exist
authorGreg Hudson <ghudson@mit.edu>
Wed, 9 Feb 2011 04:46:46 +0000 (04:46 +0000)
committerGreg Hudson <ghudson@mit.edu>
Wed, 9 Feb 2011 04:46:46 +0000 (04:46 +0000)
If /usr/bin/objformat doesn't exist on a FreeBSD system, it could
indicate a pre-3.0 a.out version or a post-7.0 ELF version.  Since
FreeBSD 3.0 is now twelve years old, it's safer to assume ELF than
a.out.

From aberry@likewise.com.

ticket: 6858

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24619 dc483132-0cff-0310-8789-dd5450dbe970

src/config/shlib.conf

index f176921f4fb6b0c1053d80abfb2ff72ff3f5cb97..dd21126e19e75f148edbbf6362d3d207648febaa 100644 (file)
@@ -309,7 +309,7 @@ mips-*-netbsd*)
        if test -x /usr/bin/objformat ; then
                objformat=`/usr/bin/objformat`
        else
-               objformat="aout"
+               objformat="elf"
        fi
        PICFLAGS=-fpic
        if test "x$objformat" = "xelf" ; then