diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-01-26 16:22:47 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-01-26 16:22:47 +0000 |
commit | 40cff71921b8e20e6fdefd41560e89067ba21483 (patch) | |
tree | e27a743c39a22b9ef0e76824c4a2c008d25c33d1 /strata/build-essential/stage2-libstdc++.morph | |
parent | eaf31937a6c16adac30e5c8ba71d457336b5df0d (diff) | |
parent | 941c6a9653c784962aab1579ff066d7a274e8d84 (diff) | |
download | definitions-40cff71921b8e20e6fdefd41560e89067ba21483.tar.gz |
Merge branch 'baserock/tiagogomes/update-toolchain-v2'
Reviewed by:
* Sam Thursfield
* Paul Sherwood
* Josh Malkinson
Diffstat (limited to 'strata/build-essential/stage2-libstdc++.morph')
-rw-r--r-- | strata/build-essential/stage2-libstdc++.morph | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/strata/build-essential/stage2-libstdc++.morph b/strata/build-essential/stage2-libstdc++.morph new file mode 100644 index 00000000..3d89ad85 --- /dev/null +++ b/strata/build-essential/stage2-libstdc++.morph @@ -0,0 +1,36 @@ +name: stage2-libstdc++ +kind: chunk +configure-commands: +- mkdir o + +# Configure flag notes: +# 1. The thread C++ library cannot be built, as the thread C library +# was not build in stage1-gcc. +# 2. Prevents the installation of precompiled include files, which are +# not needed at this stage. +# 3. From LFS: the header location of C++ needs to be explicitly given +# as we are running the configure script from the top-level +# directory. +- | + export STAGE2_SYSROOT="$(dirname $(pwd))" + # -fPIC must be given, otherwise it will not be possible to create + # shared libraries linked to libstdc++ + export CPPFLAGS="--sysroot=$STAGE2_SYSROOT -fPIC" + export LDFLAGS="--sysroot=$STAGE2_SYSROOT" + cd o && ../libstdc++-v3/configure \ + --build=$(sh ../config.guess) \ + --host="$TARGET_STAGE1" \ + --target="$TARGET_STAGE1" \ + --prefix="$PREFIX" \ + --disable-nls \ + --disable-shared \ + --disable-multilib \ + `# [1]` --disable-libstdcxx-threads \ + `# [2]` --disable-libstdcxx-pch \ + `# [3]` --with-gxx-include-dir=/tools/"$TARGET_STAGE1"/include/c++/4.9.2 + +build-commands: +- cd o && make + +install-commands: +- cd o && make DESTDIR="$DESTDIR" install |