diff options
Diffstat (limited to 'strata/armv7lhf-cross-toolchain/armv7lhf-cross-libstdc++.morph')
-rw-r--r-- | strata/armv7lhf-cross-toolchain/armv7lhf-cross-libstdc++.morph | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/strata/armv7lhf-cross-toolchain/armv7lhf-cross-libstdc++.morph b/strata/armv7lhf-cross-toolchain/armv7lhf-cross-libstdc++.morph new file mode 100644 index 00000000..b4b0e735 --- /dev/null +++ b/strata/armv7lhf-cross-toolchain/armv7lhf-cross-libstdc++.morph @@ -0,0 +1,24 @@ +name: armv7lhf-cross-libstdc++ +kind: chunk +configure-commands: +- mkdir o +- | + export MORPH_ARCH=armv7lhf + export TARGET=armv7lhf-baserock-linux-gnueabi + + # -fPIC must be given, otherwise it will not be possible to create + # shared libraries linked to libstdc++ + export CPPFLAGS="-fPIC" + cd o && ../libstdc++-v3/configure \ + --build=$(sh ../config.guess) \ + --host=$(sh ../config.guess) \ + --target="$TARGET" \ + --prefix="$PREFIX" \ + --disable-nls \ + --disable-shared \ + --disable-multilib \ + `# [1]` --with-sysroot +build-commands: +- cd o && make +install-commands: +- cd o && make DESTDIR="$DESTDIR" install |