summaryrefslogtreecommitdiffstats
path: root/ld/configure.in
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2006-05-25 01:03:09 +0000
committerH.J. Lu <hjl.tools@gmail.com>2006-05-25 01:03:09 +0000
commit314e9a4e32117623ce689a7f2934861a46f8644e (patch)
treeb53b26004140fb2e492af7ca60d408b15e5871d9 /ld/configure.in
parent8bbc8175b238f74eefbf4c2f31501ab4dfeb609b (diff)
downloadppe42-binutils-314e9a4e32117623ce689a7f2934861a46f8644e.tar.gz
ppe42-binutils-314e9a4e32117623ce689a7f2934861a46f8644e.zip
bfd/
2006-05-24 H.J. Lu <hongjiu.lu@intel.com> PR ld/1485 * config.bfd: Set want64 to true if 64bit bfd is used. (sh-*-linux*): Use targ64_selvecs for 64bit targets. (sh*l*-*-netbsdelf*): Likewise. (sh-*-netbsdelf*): Likewise. (shl*-*-elf*): Likewise. (sh[1234]l*-*-elf*): Likewise. (sh3el*-*-elf*): Likewise. (shl*-*-kaos*): Likewise. (sh-*-elf*): Likewise. (sh[1234]*-elf*): Likewise. (sh-*-rtems*): Likewise. (sh-*-kaos*): Likewise. ld/ 2006-05-24 H.J. Lu <hongjiu.lu@intel.com> PR ld/1485 * configure.in: Use ${srcdir}/../bfd/config.bfd to check 64bit bfd. Support 64bit host for --enable-targets=all. * configure: Regenerated.
Diffstat (limited to 'ld/configure.in')
-rw-r--r--ld/configure.in13
1 files changed, 10 insertions, 3 deletions
diff --git a/ld/configure.in b/ld/configure.in
index e020288c00..0f3c58d701 100644
--- a/ld/configure.in
+++ b/ld/configure.in
@@ -169,6 +169,10 @@ do
EMUL=$targ_emul
fi
+ if test x${want64} = xfalse; then
+ . ${srcdir}/../bfd/config.bfd
+ fi
+
for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
case " $all_emuls " in
*" e${i}.o "*) ;;
@@ -210,10 +214,13 @@ AC_SUBST(EMUL)
TDIRS=tdirs
AC_SUBST_FILE(TDIRS)
-dnl FIXME: We will build a 64 bit BFD for a 64 bit host or a 64 bit
-dnl target, and in those cases we should also build the 64 bit
-dnl emulations.
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
OpenPOWER on IntegriCloud