[Xfce-bugs] [Bug 2859] New: fix objformat definition for FreeBSD

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sat Feb 3 19:46:49 CET 2007


DO NOT REPLY TO THIS EMAIL.  Also, do not reply via email to the person
whose email is mentioned below.  To comment on this bug, please visit:
http://bugzilla.xfce.org/show_bug.cgi?id=2859

           Summary: fix objformat definition for FreeBSD
           Product: Xfce
           Version: 4.4.0
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: major
          Priority: High
         Component: general
        AssignedTo: xfce-bugs at xfce.org
        ReportedBy: lehmann at ans-netz.de


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*)


-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Xfce-bugs mailing list