summaryrefslogtreecommitdiff
path: root/baserock/strata/build-essential/stage2-binutils.morph
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2015-09-25 08:47:49 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2015-09-26 08:27:41 +0100
commit3a2f641e4e70e76ffa77629c6208970c1a7af667 (patch)
treee6635788976c616017c05b5ea93432f9b2dc769e /baserock/strata/build-essential/stage2-binutils.morph
parentc844667a718e8640d9ae2b7640a3b0dc0fb53b0e (diff)
downloaddefinitions-3a2f641e4e70e76ffa77629c6208970c1a7af667.tar.gz
Proposed re-org of definitions repobaserock/ps/reorganise-definitions
Diffstat (limited to 'baserock/strata/build-essential/stage2-binutils.morph')
-rw-r--r--baserock/strata/build-essential/stage2-binutils.morph21
1 files changed, 21 insertions, 0 deletions
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