diff options
author | Ian Lance Taylor <iant@google.com> | 2007-09-30 23:41:32 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-09-30 23:41:32 +0000 |
commit | 6df6da4a619b2ff8556d9979003601c99b2b4d2d (patch) | |
tree | 914da273a2afa3eb063fdd45d13ec8ee027afe5e /gold/configure.ac | |
parent | 07e8d93c1c9b260b004cbaa61a02cfd4b15e5936 (diff) | |
download | gdb-6df6da4a619b2ff8556d9979003601c99b2b4d2d.zip gdb-6df6da4a619b2ff8556d9979003601c99b2b4d2d.tar.gz gdb-6df6da4a619b2ff8556d9979003601c99b2b4d2d.tar.bz2 |
Clean up target handling--only build required files, warn about
unsupported targets.
Diffstat (limited to 'gold/configure.ac')
-rw-r--r-- | gold/configure.ac | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/gold/configure.ac b/gold/configure.ac index fcb176f..500568e 100644 --- a/gold/configure.ac +++ b/gold/configure.ac @@ -41,6 +41,8 @@ if test -n "$enable_targets"; then fi # See which specific instantiations we need. +targetobjs= +all_targets= for targ in $target $canon_targets; do targ_32_little= targ_32_big= @@ -51,12 +53,19 @@ for targ in $target $canon_targets; do targ_32_big=yes targ_64_little=yes targ_64_big=yes + all_targets=yes else case "$targ" in - i?86-*) targ_32_little=yes ;; - x86_64-*) targ_64_little=yes ;; + i?86-*) + targ_32_little=yes + targetobjs="$targetobjs i386.\$(OBJEXT)" + ;; + x86_64-*) + targ_64_little=yes + targetobjs="$targetobjs x86_64.\$(OBJEXT)" + ;; *) - AC_MSG_ERROR("target $targ: unknown size and endianness") + AC_MSG_ERROR("unsupported target $targ") ;; esac fi @@ -79,6 +88,13 @@ if test -n "$targ_64_big"; then [Define to support 64-bit big-endian targets]) fi +if test -n "$all_targets"; then + TARGETOBJS='$(ALL_TARGETOBJS)' +else + TARGETOBJS="$targetobjs" +fi +AC_SUBST(TARGETOBJS) + AC_PROG_CC AC_PROG_CXX AC_PROG_YACC |