This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: cross compile C++ includes
- From: Marcus Meissner <meissner at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 23 Aug 2002 08:59:46 +0200
- Subject: PATCH: cross compile C++ includes
Hi,
When crosscompiling gcc (ppc -> ppc64), the C++ include files appear in the
wrong directory.
Reason for this is that the libstdcxx_incdir variable is used in the Makefiles
but not passed down from toplevel configure script.
Ciao, Marcus
Changelog:
Marcus Meissner <meissner@suse.de>
Pass down libstdcxx_incdir from toplevel configure script
so the C++ includes are found during cross compile.
--- gcc-3.2-20020805/Makefile.in.xx Thu Aug 15 13:19:58 2002
+++ gcc-3.2-20020805/Makefile.in Thu Aug 15 13:21:08 2002
@@ -42,6 +42,8 @@
infodir=${prefix}/info
mandir=${prefix}/man
gxx_include_dir=${includedir}/g++
+libstdcxx_incdir=@libstdcxx_incdir@
+
tooldir = $(exec_prefix)/$(target_alias)
build_tooldir = $(exec_prefix)/$(target_alias)
--- gcc-3.2-20020805/configure.in.xx Thu Aug 15 13:38:08 2002
+++ gcc-3.2-20020805/configure.in Thu Aug 15 13:40:20 2002
@@ -1602,6 +1602,7 @@
s%^BUILD_SUBDIR[ ]*=.*$%BUILD_SUBDIR = ${build_subdir}%
s%^BUILD_CONFIGARGS[ ]*=.*$%BUILD_CONFIGARGS = ${buildargs}%
s%^gxx_include_dir[ ]*=.*$%gxx_include_dir=${gxx_include_dir}%
+s%^libstdcxx_incdir[ ]*=.*$%libstdcxx_incdir=${libstdcxx_incdir}%
EOF
sed -f $sedtemp Makefile > Makefile.tem
rm -f Makefile $sedtemp