diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2013-03-12 15:18:47 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2013-03-12 15:18:47 +0000 |
commit | dcc014ed4617a378d8d2efbfd7d92671451dcdb4 (patch) | |
tree | f7368dabd64845845e485892c8f6b82691fb32f8 | |
parent | 20d5d64a0cebf635c93375a0ceb6725ea27435ab (diff) | |
download | make-dcc014ed4617a378d8d2efbfd7d92671451dcdb4.tar.gz |
Remove -B from CPPFLAGS
We had to pass -BSYSROOT/PREFIX/include because it was the only way
to get GCC to look for headers inside a prefix that is inside a
sysroot. However, backporting a patch from GCC trunk to add the
--with-native-system-header-dir configure flag fixes this problem.
-rw-r--r-- | stage2-make.morph | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stage2-make.morph b/stage2-make.morph index 91c16924..b37c93e5 100644 --- a/stage2-make.morph +++ b/stage2-make.morph @@ -4,7 +4,7 @@ "build-system": "autotools", "configure-commands": [ "stage2-eglibc-fix-specs", - "STAGE2_SYSROOT=\"$(dirname $(pwd))\" CPPFLAGS=\"-B$STAGE2_SYSROOT/tools --sysroot=$STAGE2_SYSROOT\" LDFLAGS=\"-Wl,--sysroot=$STAGE2_SYSROOT\" ./configure --prefix=\"$PREFIX\" --disable-nls --build=$BUILD --host=$TARGET_STAGE1" + "STAGE2_SYSROOT=\"$(dirname $(pwd))\" CPPFLAGS=\"--sysroot=$STAGE2_SYSROOT\" LDFLAGS=\"-Wl,--sysroot=$STAGE2_SYSROOT\" ./configure --prefix=\"$PREFIX\" --disable-nls --build=$BUILD --host=$TARGET_STAGE1" ], "build-commands": [ "STAGE2_SYSROOT=\"$(dirname $(pwd))\" make" |