From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24775 invoked by alias); 24 May 2006 17:23:34 -0000 Received: (qmail 24760 invoked by uid 22791); 24 May 2006 17:23:32 -0000 X-Spam-Check-By: sourceware.org Received: from smtp108.sbc.mail.mud.yahoo.com (HELO smtp108.sbc.mail.mud.yahoo.com) (68.142.198.207) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 24 May 2006 17:23:28 +0000 Received: (qmail 92756 invoked from network); 24 May 2006 17:23:26 -0000 Received: from unknown (HELO lucon.org) (hjjean@sbcglobal.net@71.146.96.173 with login) by smtp108.sbc.mail.mud.yahoo.com with SMTP; 24 May 2006 17:23:26 -0000 Received: by lucon.org (Postfix, from userid 1000) id 323AF641B3; Wed, 24 May 2006 10:23:25 -0700 (PDT) Date: Thu, 25 May 2006 03:19:00 -0000 From: "H. J. Lu" To: binutils@sources.redhat.com Subject: PATCH: ld/1485: --enable-targets=all doesn't work for 64bit target Message-ID: <20060524172325.GA4375@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00445.txt.bz2 This patch checks 64bit bfd properly so that --enable-targets=all will work for 64bit target and host. H.J. ---- 2006-05-24 H.J. Lu PR ld/1485 * configure.in: Use ${srcdir}/../bfd/config.bfd to check 64bit bfd. Support 64bit host for --enable-targets=all. * configure: Regenerated. --- ld/configure.in.64 2006-04-14 14:44:46.000000000 -0700 +++ ld/configure.in 2006-05-24 10:16:18.000000000 -0700 @@ -169,6 +169,11 @@ do EMUL=$targ_emul fi + . ${srcdir}/../bfd/config.bfd + case "${targ_defvec}-${targ_selvecs}" in + *elf64*) want64=true;; + esac + for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do case " $all_emuls " in *" e${i}.o "*) ;; @@ -210,10 +215,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