From 3a2f641e4e70e76ffa77629c6208970c1a7af667 Mon Sep 17 00:00:00 2001 From: Paul Sherwood Date: Fri, 25 Sep 2015 08:47:49 +0000 Subject: Proposed re-org of definitions repo --- .../strata/build-essential/stage2-binutils.morph | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 baserock/strata/build-essential/stage2-binutils.morph (limited to 'baserock/strata/build-essential/stage2-binutils.morph') diff --git a/baserock/strata/build-essential/stage2-binutils.morph b/baserock/strata/build-essential/stage2-binutils.morph new file mode 100644 index 00000000..b07b56a4 --- /dev/null +++ b/baserock/strata/build-essential/stage2-binutils.morph @@ -0,0 +1,21 @@ +name: stage2-binutils +kind: chunk +build-system: autotools + +configure-commands: +- | + export STAGE2_SYSROOT="$(dirname $(pwd))" + export CXX="$TARGET_STAGE1-g++ --sysroot=$STAGE2_SYSROOT" + # binutils has its own embedded libtool, which is old and strips out + # `--sysroot`. Work around by modifying the compiler command to + # include the sysroot flag + export CC="$TARGET_STAGE1-gcc --sysroot=$STAGE2_SYSROOT" + ./configure --prefix="$PREFIX" --disable-nls --disable-werror \ + --build=$(sh config.guess) \ + --host=$TARGET_STAGE1 \ + --target=$TARGET_STAGE1 + +build-commands: +- | + export STAGE2_SYSROOT="$(dirname $(pwd))" + make -- cgit v1.2.1