This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: --disable-multilib broken on x86_64
- From: Martin Michlmayr <tbm at cyrius dot com>
- To: "Lu, Hongjiu" <hongjiu dot lu at intel dot com>
- Cc: Michael Meissner <michael dot meissner at amd dot com>, gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sat, 24 Mar 2007 22:25:54 +0000
- Subject: Re: --disable-multilib broken on x86_64
- References: <20070324210544.GB4360@deprecation.cyrius.com> <16D5B9AB904B0B46B22A27002EE3A8C8279843@scsmsx415.amr.corp.intel.com>
* 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/