aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorBob Manson <manson@cygnus>1997-06-13 17:25:00 +0000
committerBob Manson <manson@cygnus>1997-06-13 17:25:00 +0000
commit41547e903b5f66a0293e114b1560090f0e582f67 (patch)
tree58d41398e2689b420a1b83e847d32c79e6c39892 /configure.in
parentcf2b165ede4973b9705217a070f7d8b89a6fe794 (diff)
downloadgdb-41547e903b5f66a0293e114b1560090f0e582f67.zip
gdb-41547e903b5f66a0293e114b1560090f0e582f67.tar.gz
gdb-41547e903b5f66a0293e114b1560090f0e582f67.tar.bz2
* configure.in (targargs): Strip out any supplied --build argument
before adding our own. Always add --build.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 112aa2e..95654f4 100644
--- a/configure.in
+++ b/configure.in
@@ -870,6 +870,7 @@ targargs=`echo "${arguments}" | \
sed -e 's/--norecursion//' \
-e 's/--cache[a-z-]*=[^ ]*//' \
-e 's/--ho[a-z-]*=[^ ]*//' \
+ -e 's/--bu[a-z-]*=[^ ]*//' \
-e 's/--ta[a-z-]*=[^ ]*//'`
# Passing a --with-cross-host argument lets the target libraries know
@@ -878,7 +879,7 @@ targargs=`echo "${arguments}" | \
# sorts of decisions they want to make on this basis. Please consider
# this option to be deprecated. FIXME.
if [ x${is_cross_compiler} = xyes ]; then
- targargs="--with-cross-host=${host_alias} --build=${build_alias} ${targargs}"
+ targargs="--with-cross-host=${host_alias} ${targargs}"
fi
# Default to --enable-multilib.
@@ -886,7 +887,7 @@ if [ x${enable_multilib} = x ]; then
targargs="--enable-multilib ${targargs}"
fi
-targargs="--host=${target_alias} ${targargs}"
+targargs="--host=${target_alias} --build=${build_alias} ${targargs}"
sed -e "s:^TARGET_CONFIGDIRS[ ]*=.*$:TARGET_CONFIGDIRS = ${target_configdirs}:" \
-e "s%^CONFIG_ARGUMENTS[ ]*=.*$%CONFIG_ARGUMENTS = ${targargs}%" \
-e "s%^TARGET_SUBDIR[ ]*=.*$%TARGET_SUBDIR = ${target_subdir}%" \