This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: --disable-multilib broken on x86_64


* Lu, Hongjiu <hongjiu.lu@intel.com> [2007-03-24 14:11]:
> You need to find out why yours are different.

The reason is that I configure for the target x86_64-linux-gnu while
you check for x86_64*-*-linux* (which doesn't match).  This means that
 - libdecnumber: sets "dpd"
 - gcc: sets "bid" (the match works because the canonical target is used)
 - libgcc: sets "no"
... and we get a build failure.

This can be fixed by making sure the canonical target is used in
configure.ac so the check for the target will actually work, as below.
OK to commit?

2007-03-24  Martin Michlmayr  <tbm@cyrius.com>

        configure.ac: Run AC_CANONICAL_{BUILD,HOST,TARGET} so the newly
        added checks for decimal floating point work.

Index: libgcc/configure.ac
===================================================================
--- libgcc/configure.ac	(revision 123187)
+++ libgcc/configure.ac	(working copy)
@@ -7,6 +7,11 @@
 AC_INIT([GNU C Runtime Library], 1.0,,[libgcc])
 AC_CONFIG_SRCDIR([static-object.mk])
 
+# Determine the host, build, and target systems
+AC_CANONICAL_BUILD
+AC_CANONICAL_HOST
+AC_CANONICAL_TARGET
+
 AC_ARG_WITH(target-subdir,
 [  --with-target-subdir=SUBDIR      Configuring in a subdirectory for target])
 AC_ARG_WITH(cross-host,
Index: libdecnumber/configure.ac
===================================================================
--- libdecnumber/configure.ac	(revision 123187)
+++ libdecnumber/configure.ac	(working copy)
@@ -25,6 +25,11 @@
 AC_CONFIG_SRCDIR(decNumber.h)
 AC_CONFIG_MACRO_DIR(../config)
 
+# Determine the host, build, and target systems
+AC_CANONICAL_BUILD
+AC_CANONICAL_HOST
+AC_CANONICAL_TARGET
+
 # Checks for programs.
 AC_PROG_MAKE_SET
 AC_PROG_CC

-- 
Martin Michlmayr
http://www.cyrius.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]