fix objformat definition for FreeBSD
Submitted by Oliver Lehmann
Assigned to Xfce Bug Triage
Description
All the configure scripts in xfce are setting the default objformat to aout if the objformat binary is missing. The objformat binary was added in FreeBSD 3 days to ease the transition from aout to elf. In FreeBSD 7 the binary got finally removed. The aout support was removed in FreeBSD 4 so since then the objformat binary was just a "left over".
I suggest to remove the whole objformat detection stuff from aclocal.m4 because FreeBSD switched to elf in 2000 with FreeBSD 3 (EOL end of 2000) and had no way to move back to aout with FreeBSD 4 (started in 2000).
I suggest the following patch to fix the object format stuff in FreeBSD 7 and higher.
--- aclocal.m4.orig Sat Jan 20 19:21:04 2007 +++ aclocal.m4 Sat Feb 3 19:46:08 2007 @@ -1290,33 +1290,12 @@ ;;
freebsd*)
- objformat=
test -x /usr/bin/objformat && /usr/bin/objformat || echo aout
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
-
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
-
need_version=no
-
need_lib_prefix=no
-
;;
- freebsd-*)
-
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
-
need_version=yes
-
;;
- esac
- library_names_spec='
{libname}
{release}{shared_ext}
versuffix{libname}
{release}${shared_ext}libname
{shared_ext}' - need_version=no
- need_lib_prefix=no shlibpath_var=LD_LIBRARY_PATH
- case $host_os in
- freebsd2*)
- shlibpath_overrides_runpath=yes
- ;;
- freebsd3.[01]* | freebsdelf3.[01]*)
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- *) # from 3.2 on
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- ;;
- esac
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes ;;
gnu*)
Version: 4.4.x