This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] ld: Set want64 on a 64-bit host regardless of --enable-all-targets
- From: Roland McGrath <mcgrathr at google dot com>
- To: binutils at sourceware dot org
- Date: Wed, 21 Mar 2012 11:05:30 -0700
- Subject: [PATCH] ld: Set want64 on a 64-bit host regardless of --enable-all-targets
On a 64-bit host with neither --enable-all-targets nor --enable-64-bit-bfd,
BFD will be configured to support 64-bit targets in the "extra targets" list.
But ld omits the 64-bit emulations in the "extra emulations" list.
This change makes it consistent.
Ok for trunk?
Thanks,
Roland
ld/
2012-03-21 Roland McGrath <mcgrathr@google.com>
* configure.in: Set want64 on a 64-bit host regardless of
--enable-all-targets.
* configure: Regenerated.
diff --git a/ld/configure.in b/ld/configure.in
index 63936f2..f51ff4f 100644
--- a/ld/configure.in
+++ b/ld/configure.in
@@ -252,6 +252,8 @@ dnl not permit literal newlines in an AC_SUBST variables. So we use a
dnl file.
rm -f tdirs
+checked64=false
+
for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
do
if test "$targ_alias" = "all"; then
@@ -275,6 +277,14 @@ do
. ${srcdir}/../bfd/config.bfd
fi
+ if test x${want64} = xfalse && test x${checked64} = xfalse; then
+ AC_CHECK_SIZEOF(long)
+ checked64=true
+ if test "x${ac_cv_sizeof_long}" = "x8"; then
+ want64=true
+ fi
+ fi
+
if test x${want64} = xtrue; then
targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
@@ -322,12 +332,6 @@ TDIRS=tdirs
AC_SUBST_FILE(TDIRS)
if test x${all_targets} = xtrue; then
- if test x${want64} = xfalse; then
- AC_CHECK_SIZEOF(long)
- if test "x${ac_cv_sizeof_long}" = "x8"; then
- want64=true
- fi
- fi
if test x${want64} = xtrue; then
EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
else