This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] [libstdc++] Fix build failure with --enable-libstdcxx-debug
- From: Matthias Klose <doko at ubuntu dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 10 Dec 2012 09:22:16 +0100
- Subject: Re: [patch] [libstdc++] Fix build failure with --enable-libstdcxx-debug
- References: <50C58D06.8020204@ubuntu.com>
Am 10.12.2012 08:19, schrieb Matthias Klose:
> Seen with a x86_64 x arm x arm cross build and --enable-libstdcxx-debug. The
> ../config.h should not be hard-coded. Using the macro guarantees that the
> rewritten macros for the debug builds are used. However I fail to see why the
> unpatched version does work for the native build.
>
> Ok for the trunk and the 4.7 branch?
and attaching the patch ...
# DP: Fix cross build failure with --enable-libstdcxx-debug.
* src/Makefile.am (libstdc++-symbols.ver): Use CONFIG_HEADER.
* src/Makefile.in: Regenerate.
--- libstdc++-v3/src/Makefile.am~ 2012-12-09 11:55:15.357516806 +0100
+++ libstdc++-v3/src/Makefile.am 2012-12-09 14:48:31.545377728 +0100
@@ -213,7 +213,7 @@
fi; \
fi
$(EGREP) -v '^[ ]*#(#| |$$)' $@.tmp | \
- $(CC) -E -P -include ../config.h - > $@ || (rm -f $@ ; exit 1)
+ $(CC) -E -P -include $(CONFIG_HEADER) - > $@ || (rm -f $@ ; exit 1)
rm -f $@.tmp
CLEANFILES = libstdc++-symbols.ver