This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ar "emulations"
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Mon, 28 Sep 2009 20:00:37 +0930
- Subject: ar "emulations"
I noticed this the other day when looking at a bug report regarding
ar for an aix target. Presumably this loop was modelled on a similar
loop in gas/configure.in, but it doesn't make sense here. ar
doesn't support multiple emulations like gas does on some targets.
* configure.in: Don't invoke configure.tgt on $enable_targets.
* configure: Regenerate.
Index: binutils/configure.in
===================================================================
RCS file: /cvs/src/src/binutils/configure.in,v
retrieving revision 1.96
diff -u -p -r1.96 configure.in
--- binutils/configure.in 18 Jun 2009 02:11:02 -0000 1.96
+++ binutils/configure.in 28 Sep 2009 10:19:43 -0000
@@ -445,21 +445,10 @@ AC_DEFINE_UNQUOTED(TARGET_PREPENDS_UNDER
[Define to 1 if user symbol names have a leading underscore, 0 if not.])
# Emulation
-for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
-do
- # Canonicalize the secondary target names.
- result=`$ac_config_sub $targ_alias 2>/dev/null`
- if test -n "$result"; then
- targ=$result
- else
- targ=$targ_alias
- fi
-
- . ${srcdir}/configure.tgt
-
- EMULATION=$targ_emul
- EMULATION_VECTOR=$targ_emul_vector
-done
+targ=$target
+. ${srcdir}/configure.tgt
+EMULATION=$targ_emul
+EMULATION_VECTOR=$targ_emul_vector
AC_SUBST(EMULATION)
AC_SUBST(EMULATION_VECTOR)
--
Alan Modra
Australia Development Lab, IBM