PATCH: [configure,FreeBSD] Default FreeBSD to ELF format

Gerald Pfeifer gerald@pfeifer.com
Mon Feb 12 21:33:00 GMT 2007


Until a few days ago, FreeBSD -CURRENT (the equivalent to our mainline) 
featured a program /usr/bin/objformat that would print "elf" on modern ELF 
systems.

Since this program was removed after a deprecation period of half a 
century :-), GCC now falls back to a.out format, at least in how we
name libraries.

The patch below addresses this by defaulting to "elf" instead of "aout"
in case /usr/bin/objformat is not present.

If desired, I can go for the full change of ripping out support for 
anything but elf on FreeBSD, but at least the minimal patch below I'd
like to commit rather sooner than later.

Okay for mainline, 4.2, and 4.1?

Gerald

2007-02-12  Gerald Pfeifer  <gerald@pfeifer.com>

	* ltconfig (freebsd*): Default to elf.

Index: ltconfig
===================================================================
--- ltconfig	(revision 121856)
+++ ltconfig	(working copy)
@@ -1133,7 +1133,7 @@
   ;;
 
 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*)



More information about the Gcc-patches mailing list