summaryrefslogtreecommitdiff
path: root/chunks/stage2-binutils.morph
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2014-04-14 12:22:53 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2014-04-14 12:22:53 +0000
commit0ce6de7adbd5fe6b268e1b8a1422cdfeb7cdebf5 (patch)
treeda8498e1eab2464b06117337cb0b7c87322e6ed1 /chunks/stage2-binutils.morph
parent10dda889872542b8f261555c139791ff34eec9b1 (diff)
downloaddefinitions-0ce6de7adbd5fe6b268e1b8a1422cdfeb7cdebf5.tar.gz
Add chunk morphologies to definitions repositorybaserock/adamcoldrick/chunks-in-definitions-by-kind
Diffstat (limited to 'chunks/stage2-binutils.morph')
-rw-r--r--chunks/stage2-binutils.morph21
1 files changed, 21 insertions, 0 deletions
diff --git a/chunks/stage2-binutils.morph b/chunks/stage2-binutils.morph
new file mode 100644
index 00000000..75d30a78
--- /dev/null
+++ b/chunks/stage2-binutils.morph
@@ -0,0 +1,21 @@
+name: stage2-binutils
+kind: chunk
+repo: upstream:binutils-redhat
+ref: 987eb543a034cddc4eeb103f08f566f24a5f964a
+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:
+- |
+ export STAGE2_SYSROOT="$(dirname $(pwd))"
+ export CPPFLAGS="--sysroot=$STAGE2_SYSROOT"
+ export LDFLAGS="-Wl,--sysroot=$STAGE2_SYSROOT"
+ make