diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-04-14 16:02:36 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-04-14 16:13:23 +0000 |
commit | aa85df216ef454a47f2d6d027fcec2400d1083e3 (patch) | |
tree | eb238277d6e9f1c7be5d99043d507d9c0e5961ff /chunks/stage1-gcc.morph | |
parent | 519294adf840fd3981a9aafc7744d3fe66301c68 (diff) | |
download | definitions-aa85df216ef454a47f2d6d027fcec2400d1083e3.tar.gz |
Add chunk morphologies to the definitions repository
Diffstat (limited to 'chunks/stage1-gcc.morph')
-rw-r--r-- | chunks/stage1-gcc.morph | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/chunks/stage1-gcc.morph b/chunks/stage1-gcc.morph new file mode 100644 index 00000000..079baf35 --- /dev/null +++ b/chunks/stage1-gcc.morph @@ -0,0 +1,33 @@ +name: stage1-gcc +kind: chunk +repo: upstream:gcc-tarball +ref: dd78b627480ed8d3c135271cd627096ae76fa5fc +unpetrify-ref: baserock/build-essential +configure-commands: +- mkdir o +- | + cd o && + ../configure \ + $(../morph-arch-config) \ + --build=$(sh ../config.guess) --host=$(sh ../config.guess) \ + --target=$TARGET_STAGE1 \ + --prefix="$PREFIX" \ + --disable-bootstrap --disable-nls \ + `# [1]` --libdir="$PREFIX/lib" --disable-multilib --disable-libgomp \ + --without-cloog --without-ppl \ + --with-mpfr-include="$(pwd)/../mpfr/src" \ + --with-mpfr-lib="$(pwd)/mpfr/src/.libs" \ + `# [2]` --with-local-prefix="$PREFIX" \ + `# [3]` --with-native-system-header-dir="$PREFIX/include" \ + `# [4]` --enable-languages=c --disable-decimal-float \ + --disable-libmudflap --disable-libquadmath --disable-libssp \ + --disable-shared --disable-threads --disable-target-libiberty \ + --disable-target-zlib --without-headers --with-newlib \ + --with-system-zlib +build-commands: +- cd o && make +install-commands: +- cd o && make DESTDIR="$DESTDIR" install +- | + libgcc_filename=$($DESTDIR$PREFIX/bin/$TARGET_STAGE1-gcc -print-libgcc-file-name) + ln -sv libgcc.a $(echo $libgcc_filename | sed 's/libgcc/&_eh/') |