diff --git a/ChangeLog b/ChangeLog index cc36c026..bd5f16a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2005-08-18 Ralf Wildenhues + * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ freebsd ]: Do not + assume `aout' for modern FreeBSD by absence of deprecated + `objformat'. + * m4/libtool.m4 [sun, CC] (_LT_LANG_CXX_CONFIG): Move postdeps override .. (_LT_SYS_HIDDEN_LIBDEPS): ..here. diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 84e18d92..b69558a4 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -1939,7 +1939,14 @@ kfreebsd*-gnu) freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[[123]]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi version_type=freebsd-$objformat case $version_type in freebsd-elf*)