This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
quoting in GLIBCXX_INCLUDES, canadian cross
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: gcc-patches at gcc dot gnu dot org, Phil Edwards <pme at gcc dot gnu dot org>
- Date: Mon, 25 Aug 2003 19:24:15 +0930
- Subject: quoting in GLIBCXX_INCLUDES, canadian cross
Hi Phil,
Your latest libstdc++-v3/acinclude.m4 patch introduced a problem on
powerpc64-linux. I'm seeing '-I/usr/local/include' quotes and all,
being passed to gcc. This doesn't work very well.. eg.
g++: '-I/usr/local/include': No such file or directory
ie. we're looking for a rather unusually named file, starting in a
dir named <quote><dash>I.
I haven't tried to fix this because for my config I shouldn't be seeing
CANADIAN=yes. The following fixes the CANADIAN problem. $host_alias,
not $host, is passed down via --with-cross-host.
* configure.ac: Test with_cross_host against build_alias, not build.
* configure: Regenerate.
Index: libstdc++-v3/configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/configure.ac,v
retrieving revision 1.4
diff -u -p -r1.4 configure.ac
--- libstdc++-v3/configure.ac 17 Aug 2003 20:27:28 -0000 1.4
+++ libstdc++-v3/configure.ac 25 Aug 2003 09:13:45 -0000
@@ -160,7 +160,7 @@ else
# If Canadian cross, then don't pick up tools from the build directory.
# Used only in GLIBCXX_EXPORT_INCLUDES.
if test -n "$with_cross_host" &&
- test x"$build" != x"$with_cross_host" &&
+ test x"$build_alias" != x"$with_cross_host" &&
test x"$build" != x"$target";
then
CANADIAN=yes
--
Alan Modra
IBM OzLabs - Linux Technology Centre