summaryrefslogtreecommitdiff
path: root/cross-gnu-env
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-07-28 08:20:32 +0200
committerThomas Schwinge <thomas@codesourcery.com>2012-07-28 08:20:32 +0200
commit27f396b639f80cf83889b30356fbf21d579f3ecc (patch)
tree4139a392c3b99c95b85da35e5b4fbbc32c1b95c1 /cross-gnu-env
parent2114e5595b9f6f94efcf66d405003be31b5b8eed (diff)
CROSS_GNU_USR.
Diffstat (limited to 'cross-gnu-env')
-rwxr-xr-xcross-gnu-env10
1 files changed, 9 insertions, 1 deletions
diff --git a/cross-gnu-env b/cross-gnu-env
index 9e192f819..5f139da92 100755
--- a/cross-gnu-env
+++ b/cross-gnu-env
@@ -3,7 +3,8 @@
# Cross compile a GNU build environment,
# <http://www.gnu.org/software/hurd/toolchain/cross-gnu.html>.
-# Copyright (C) 2006, 2007, 2008, 2010, 2011 Free Software Foundation, Inc.
+# Copyright (C) 2006, 2007, 2008, 2010, 2011, 2012 Free Software Foundation,
+# Inc.
# Written by Thomas Schwinge <thomas@schwinge.name>.
@@ -85,6 +86,13 @@ esac &&
prj_x2 prj_set_default SYS_ROOT "$ROOT"/sys_root &&
+# Note that to avoid confusing GCC, the following has to match how GCC is
+# configured re NATIVE_SYSTEM_HEADER_DIR (gcc/config/t-gnu) or
+# native_system_header_dir (gcc/config.gcc) or the
+# --with-native-system-header-dir command-line option.
+#prj_unset CROSS_GNU_USR &&
+prj_x2 prj_set_default CROSS_GNU_USR /usr &&
+
prj_x2 prj_set_default TARGET i686-pc-gnu &&
prj_x2 prj_set_default BINUTILS_SRC "$ROOT"/src/binutils &&