summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-05-13 04:32:06 +0000
committerMike Frysinger <vapier@gentoo.org>2006-05-13 04:32:06 +0000
commit3a661c9461445a192ba32d3eb137ca2ff593ccc5 (patch)
tree214a7b03888eaef0cddaaeed628ea904bf222494 /sys-devel/gcc
parentarm/sh stable (diff)
downloadgentoo-2-3a661c9461445a192ba32d3eb137ca2ff593ccc5.tar.gz
gentoo-2-3a661c9461445a192ba32d3eb137ca2ff593ccc5.tar.bz2
gentoo-2-3a661c9461445a192ba32d3eb137ca2ff593ccc5.zip
fix patch to work on gcc-4.0.x #133098 by John Bachan
Diffstat (limited to 'sys-devel/gcc')
-rw-r--r--sys-devel/gcc/files/4.0.2/gcc-4.0.2-cross-compile.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys-devel/gcc/files/4.0.2/gcc-4.0.2-cross-compile.patch b/sys-devel/gcc/files/4.0.2/gcc-4.0.2-cross-compile.patch
index 523caa48a3c8..e14b57a3fdf4 100644
--- a/sys-devel/gcc/files/4.0.2/gcc-4.0.2-cross-compile.patch
+++ b/sys-devel/gcc/files/4.0.2/gcc-4.0.2-cross-compile.patch
@@ -24,9 +24,9 @@ http://gcc.gnu.org/ml/gcc/2005-07/msg01195.html
esac
-elif test "x$TARGET_SYSTEM_ROOT" != x; then
+elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then
- SYSTEM_HEADER_DIR=$build_system_header_dir
+ # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
+ SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
fi
-
--- gcc/configure.ac
+++ gcc/configure.ac
@@ -1717,7 +1717,7 @@ then
@@ -35,6 +35,6 @@ http://gcc.gnu.org/ml/gcc/2005-07/msg01195.html
esac
-elif test "x$TARGET_SYSTEM_ROOT" != x; then
+elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then
- SYSTEM_HEADER_DIR=$build_system_header_dir
+ # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
+ SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
fi
-