summaryrefslogtreecommitdiff
path: root/chunks/stage2-make.morph
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2014-07-21 10:59:46 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2014-07-24 16:53:05 +0100
commit6be2d5be9a44d5185e103357a9517977dfcd93a0 (patch)
treee09852e02622f01cea9c94f1e6c389b7450dff40 /chunks/stage2-make.morph
parentb2f120b8edc40237bb387cfe480d08ac960ee8aa (diff)
downloaddefinitions-6be2d5be9a44d5185e103357a9517977dfcd93a0.tar.gz
Move build-essential chunks to definitions
Diffstat (limited to 'chunks/stage2-make.morph')
-rw-r--r--chunks/stage2-make.morph13
1 files changed, 13 insertions, 0 deletions
diff --git a/chunks/stage2-make.morph b/chunks/stage2-make.morph
new file mode 100644
index 00000000..fee819be
--- /dev/null
+++ b/chunks/stage2-make.morph
@@ -0,0 +1,13 @@
+name: stage2-make
+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 \
+ --build=$(sh config/config.guess) --host=$TARGET_STAGE1
+build-commands:
+- STAGE2_SYSROOT="$(dirname $(pwd))" make