From 62c8fd9671fb1c95188a6c7557373ad8adaa57b1 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Wed, 27 Feb 2008 02:11:26 +0000 Subject: [PATCH] Fixed gcc to use gcc_gxx_include_dir='${CROSS_SYSTEM_HEADER_DIR}/c++' Note: This fixes cross-compiling C++ code! --- .../gcc-4.1.2-gxx_include_dir.patch.toolchain | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 base/gcc/gcc-4.1.2-gxx_include_dir.patch.toolchain diff --git a/base/gcc/gcc-4.1.2-gxx_include_dir.patch.toolchain b/base/gcc/gcc-4.1.2-gxx_include_dir.patch.toolchain new file mode 100644 index 000000000..da9b379ba --- /dev/null +++ b/base/gcc/gcc-4.1.2-gxx_include_dir.patch.toolchain @@ -0,0 +1,31 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../gcc/gcc-4.1.2-gxx_include_dir.patch.toolchain +# Copyright (C) 2008 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +--- gcc-4.1.2/gcc/configure.orig 2007-04-19 16:41:47.000000000 +0200 ++++ gcc-4.1.2/gcc/configure 2007-04-19 16:42:52.000000000 +0200 +@@ -1655,10 +1655,10 @@ + + if test x${gcc_gxx_include_dir} = x; then + if test x${enable_version_specific_runtime_libs} = xyes; then +- gcc_gxx_include_dir='${libsubdir}/include/c++' ++ gcc_gxx_include_dir='${CROSS_SYSTEM_HEADER_DIR}/c++' + else + libstdcxx_incdir='c++/$(version)' +- gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir} ++ gcc_gxx_include_dir="\$(CROSS_SYSTEM_HEADER_DIR)/"${libstdcxx_incdir} + fi + fi +