[PATCH] ld: Set want64 on a 64-bit host regardless of --enable-all-targets
Alan Modra
amodra@gmail.com
Fri Mar 23 05:12:00 GMT 2012
On Wed, Mar 21, 2012 at 11:05:30AM -0700, Roland McGrath wrote:
> * configure.in: Set want64 on a 64-bit host regardless of
> --enable-all-targets.
> * configure: Regenerated.
I'd be inclined to move the setting of want64 out of the loop as
follows. Either way is OK though.
Index: ld/configure.in
===================================================================
RCS file: /cvs/src/src/ld/configure.in,v
retrieving revision 1.71
diff -u -p -r1.71 configure.in
--- ld/configure.in 10 Jan 2012 00:02:47 -0000 1.71
+++ ld/configure.in 23 Mar 2012 04:32:39 -0000
@@ -31,6 +31,13 @@ AC_ARG_ENABLE(64-bit-bfd,
*) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
esac],[want64=false])dnl
+if test x${want64} = xfalse; then
+ AC_CHECK_SIZEOF(long)
+ if test "x${ac_cv_sizeof_long}" = "x8"; then
+ want64=true
+ fi
+fi
+
AC_ARG_WITH(sysroot,
[ --with-sysroot[=DIR] Search for usr/lib et al within DIR.],
[
@@ -322,12 +329,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
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list