diff options
author | Richard Maw <richard.maw@gmail.com> | 2014-07-21 10:59:46 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2014-07-24 16:53:05 +0100 |
commit | 6be2d5be9a44d5185e103357a9517977dfcd93a0 (patch) | |
tree | e09852e02622f01cea9c94f1e6c389b7450dff40 /chunks/stage2-binutils.morph | |
parent | b2f120b8edc40237bb387cfe480d08ac960ee8aa (diff) | |
download | definitions-6be2d5be9a44d5185e103357a9517977dfcd93a0.tar.gz |
Move build-essential chunks to definitions
Diffstat (limited to 'chunks/stage2-binutils.morph')
-rw-r--r-- | chunks/stage2-binutils.morph | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/chunks/stage2-binutils.morph b/chunks/stage2-binutils.morph new file mode 100644 index 00000000..bc0b18ac --- /dev/null +++ b/chunks/stage2-binutils.morph @@ -0,0 +1,24 @@ +name: stage2-binutils +kind: chunk +build-system: autotools + +configure-commands: +- | + export STAGE2_SYSROOT="$(dirname $(pwd))" + export CPPFLAGS="--sysroot=$STAGE2_SYSROOT" + export CXX=false + export LDFLAGS="-Wl,--sysroot=$STAGE2_SYSROOT" + ./configure --prefix="$PREFIX" --disable-nls --disable-werror \ + --build=$(sh config.guess) \ + --host=$TARGET_STAGE1 \ + --target=$TARGET_STAGE1 + +build-commands: +# Nested configure scripts require that we set CPPFLAGS here as well +# (I don't think we should have to .. . at least in GCC, I think +# TARGET_CPPFLAGS may be the answer) +- | + export STAGE2_SYSROOT="$(dirname $(pwd))" + export CPPFLAGS="--sysroot=$STAGE2_SYSROOT" + export LDFLAGS="-Wl,--sysroot=$STAGE2_SYSROOT" + make |