This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH]: Turn on all for Linux/ia32


I'd like to check in this patch for gas. It seems to work on
Linux/ia32, Solaris/ia32 and Solaris/Sparc.


-- 
H.J. Lu (hjl@gnu.org)
--
Wed Feb  2 09:49:57 2000  H.J. Lu  (hjl@gnu.org)

	* configure.in: Support --enable-targets=all and enable
	i386aout and i386coff for Linux when --enable-targets=all
	is used.
	* configure: Regenerated.

Index: configure.in
===================================================================
RCS file: /work/cvs/gnu/binutils/gas/configure.in,v
retrieving revision 1.1.1.16
diff -u -p -r1.1.1.16 configure.in
--- configure.in	2000/02/25 22:34:51	1.1.1.16
+++ configure.in	2000/03/02 17:34:29
@@ -64,9 +64,9 @@ if test -n "$enable_targets" ; then
     result=`$ac_config_sub $t 2>/dev/null`
     if test -n "$result" ; then
       canon_targets="$canon_targets $result"
-#    else
-#      # Permit "all", etc.  We don't support it yet though.
-#      canon_targets="$canon_targets $t"
+    else
+      # Permit "all", etc.  Only works on some platforms though.
+      canon_targets="$canon_targets $t"
     fi
   done
   GAS_UNIQ(canon_targets)
@@ -76,9 +76,11 @@ emulations=""
 
 for this_target in $target $canon_targets ; do
 
+if test "$this_target" != "all"; then
 changequote(,)dnl
     eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
 changequote([,])dnl
+fi
 
     # check for architecture variants
     arch=
@@ -506,10 +508,14 @@ changequote([,])dnl
 			big)	emulation="mipsbelf mipslelf mipself" ;;
 			*)	emulation="mipslelf mipsbelf mipself" ;;
 			esac ;;
-      # Uncommenting the next line will turn on support for i386 AOUT
-      # for the default linux configuration
-      # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
-      #
+      # Turn on support for i386 AOUT and COFF if asked.
+      i386-*-linux*-elf)
+        if test x"$this_target" = x"all"; then
+	  emulation="i386aout i386coff"
+	else
+	  emulation="i386elf"
+	fi
+	;;
       i386-*-aout)	emulation="i386aout" ;;
       i386-*-coff)	emulation="i386coff" ;;
       i386-*-elf)	emulation="i386elf" ;;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]