This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Don't build abi_check for crosses
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: aj at suse dot de, libstdc++ at gcc dot gnu dot org, bkoz at redhat dot com
- Date: Mon, 8 Sep 2003 16:02:07 -0400
- Subject: Don't build abi_check for crosses
This is the 3.3 version of the patch. 3.4 the test is negated and against
GLIBCXX_IS_NATIVE:
if test x"$GLIBCPP_IS_NATIVE" = xfalse || test x$enable_symvers = xno; then
This is necessary because automake can't build abi_check for the host.
Right now it's listed as a target program, and will be linked to the newly
built libstdc++; if $build != $host or --with-cross-host, we won't be able
to run it even if we were able to build it. Ben, CC'd you because you
removed the comment saying to build it native only; was there a reason?
OK?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2003-09-08 Daniel Jacobowitz <drow@mvista.com>
Andreas Jaeger <aj@suse.de>
PR libstdc++/12189
* acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Don't build
abi_check if cross compiling.
* aclocal.m4: Regenerated.
* configure: Regenerated.
--- gcc-3.3.1/libstdc++-v3/acinclude.m4.orig 2003-09-08 15:18:25.000000000 -0400
+++ gcc-3.3.1/libstdc++-v3/acinclude.m4 2003-09-08 15:19:51.000000000 -0400
@@ -2132,7 +2132,7 @@ AC_DEFUN(GLIBCPP_CONFIGURE_TESTSUITE, [
AC_SUBST(baseline_dir)
# Determine if checking the ABI is desirable.
- if test x$enable_symvers = xno; then
+ # Only build this as native, since automake does not understand
+ # CXX_FOR_BUILD.
+ if test x"$GLIBCPP_IS_CROSS_COMPILING" = xtrue || test x$enable_symvers = xno; then
enable_abi_check=no
else
case "$host" in