This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: [configure,FreeBSD] Default FreeBSD to ELF format
Hello Gerald,
Gerald Pfeifer <gerald <at> pfeifer.com> writes:
>
> * ltconfig (freebsd*): Default to elf.
[...]
>
> freebsd*)
> - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
> + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf`
> version_type=freebsd-$objformat
> case $version_type in
> freebsd-elf*)
FWIW, current Libtool has this in libtool.m4 (M4 quoting removed):
freebsd* | dragonfly*)
# DragonFly does not have aout. When/if they implement a new
# versioning mechanism, adjust this.
if test -x /usr/bin/objformat; then
objformat=`/usr/bin/objformat`
else
case $host_os in
freebsd[123]*) objformat=aout ;;
*) objformat=elf ;;
esac
fi
Not sure if anybody cares for the backward compatibility.
Cheers,
Ralf