diff options
Diffstat (limited to 'strata/build-essential/stage2-libstdc++.morph')
-rw-r--r-- | strata/build-essential/stage2-libstdc++.morph | 25 |
1 files changed, 25 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..b747f22b --- /dev/null +++ b/strata/build-essential/stage2-libstdc++.morph @@ -0,0 +1,25 @@ +name: stage2-libstdc++ +kind: chunk +configure-commands: +- mkdir o +- | + 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 |