aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-06-11 01:39:08 +0000
committerAndrew Cagney <cagney@redhat.com>2000-06-11 01:39:08 +0000
commit5c8cc3317344725ab57ecb24655e7e5d559c0ac0 (patch)
treef04382aa42480925bd7fc5eac3f0167f65089d3e /gdb/configure.in
parent4b9b395931f9b9ed5bff797fad1e128fe9da136b (diff)
downloadgdb-5c8cc3317344725ab57ecb24655e7e5d559c0ac0.zip
gdb-5c8cc3317344725ab57ecb24655e7e5d559c0ac0.tar.gz
gdb-5c8cc3317344725ab57ecb24655e7e5d559c0ac0.tar.bz2
Trim targ_arches to just the first.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index f512b82..958ff9c 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -80,6 +80,10 @@ dnl use BFD to determine the default architecture and byte order
dnl (bfd_vec->byteorder provides the latter).
targ=${target}
. ${srcdir}/../bfd/config.bfd
+
+dnl We only want the first arch, if there is more than one.
+targ_archs=`echo ${targ_archs} | sed -e 's/ .*//;'`
+
if test x"${targ_archs}" != x ; then
AC_DEFINE_UNQUOTED(DEFAULT_BFD_ARCH, ${targ_archs})
fi