aboutsummaryrefslogtreecommitdiff
path: root/gold/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'gold/configure.ac')
-rw-r--r--gold/configure.ac22
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