diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2013-05-23 17:55:42 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2013-05-23 17:55:42 +0000 |
commit | 020f62cdf298ac0853c37cefceee6f5fa0043105 (patch) | |
tree | 812e0570c408f6950703dfbd7f02b627459b0c41 | |
parent | d51623c99fb41c8113d4a9ead918d256d2764fc0 (diff) | |
download | binutils-redhat-020f62cdf298ac0853c37cefceee6f5fa0043105.tar.gz |
morphology: use embedded zlib during stage 2
Enough things can go wrong that we can't rely on having shared objects
work during this stage of the bootstrap, hence why the toolchain
will use embedded zlib.
This also fixes a typo with `--with-lib-path`, so it shouldn't use
the host's libraries any more.
-rw-r--r-- | stage2-binutils.morph | 2 | ||||
-rw-r--r-- | stage2-binutils.morph.yaml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/stage2-binutils.morph b/stage2-binutils.morph index 60b11223c6..4b664a0756 100644 --- a/stage2-binutils.morph +++ b/stage2-binutils.morph @@ -4,7 +4,7 @@ "build-system": "autotools", "configure-commands": [ "stage2-eglibc-fix-specs", - "export STAGE2_SYSROOT=\"$(dirname $(pwd))\"\nexport CPPFLAGS=\"--sysroot=$STAGE2_SYSROOT\"\nexport CXX=false\nexport LDFLAGS=\"-Wl,--sysroot=$STAGE2_SYSROOT\"\n./configure --prefix=\"$PREFIX\" --disable-nls --disable-werror \\\n --build=$(sh config.guess) \\\n --host=$TARGET_STAGE1 \\\n --target=$TARGET_STAGE1 \\\n --with-lib-path=\"$PREFIX/lib --with-system-zlib\"\n" + "export STAGE2_SYSROOT=\"$(dirname $(pwd))\"\nexport CPPFLAGS=\"--sysroot=$STAGE2_SYSROOT\"\nexport CXX=false\nexport LDFLAGS=\"-Wl,--sysroot=$STAGE2_SYSROOT\"\n./configure --prefix=\"$PREFIX\" --disable-nls --disable-werror \\\n --build=$(sh config.guess) \\\n --host=$TARGET_STAGE1 \\\n --target=$TARGET_STAGE1 \\\n --with-lib-path=\"$PREFIX/lib\"\n" ], "build-commands": [ "export STAGE2_SYSROOT=\"$(dirname $(pwd))\"\nexport CPPFLAGS=\"--sysroot=$STAGE2_SYSROOT\"\nexport LDFLAGS=\"-Wl,--sysroot=$STAGE2_SYSROOT\"\nmake\n" diff --git a/stage2-binutils.morph.yaml b/stage2-binutils.morph.yaml index 85efd878a1..a1f2d92e64 100644 --- a/stage2-binutils.morph.yaml +++ b/stage2-binutils.morph.yaml @@ -14,7 +14,7 @@ configure-commands: --build=$(sh config.guess) \ --host=$TARGET_STAGE1 \ --target=$TARGET_STAGE1 \ - --with-lib-path="$PREFIX/lib --with-system-zlib" + --with-lib-path="$PREFIX/lib" build-commands: # Nested configure scripts require that we set CPPFLAGS here as well |