From f6046f9b54c1f14d12a67fa66ca0c881b49e8ceb Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Fri, 7 Jul 2017 10:01:07 +0000 Subject: Move old Baserock format definitions into old/ directory --- old/strata/build-essential/stage2-binutils.morph | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 old/strata/build-essential/stage2-binutils.morph (limited to 'old/strata/build-essential/stage2-binutils.morph') diff --git a/old/strata/build-essential/stage2-binutils.morph b/old/strata/build-essential/stage2-binutils.morph new file mode 100644 index 00000000..b07b56a4 --- /dev/null +++ b/old/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