diff options
Diffstat (limited to 'chunks/gcc.morph')
-rw-r--r-- | chunks/gcc.morph | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/chunks/gcc.morph b/chunks/gcc.morph new file mode 100644 index 00000000..10320ad4 --- /dev/null +++ b/chunks/gcc.morph @@ -0,0 +1,30 @@ +name: gcc +kind: chunk +repo: upstream:gcc-tarball +ref: 088b7ab28fe53b198ec5c4eaba0f54176c4c35a0 +configure-commands: +- mkdir o +- | + cd o && \ + ../configure \ + $(../morph-arch-config) \ + --prefix="$PREFIX" \ + `# [1]` --libdir=$PREFIX/lib \ + --disable-nls \ + --enable-languages=c,c++,fortran \ + --enable-shared --enable-threads=posix \ + `# [2]` --disable-multilib \ + `# [3]` --disable-libgomp --without-cloog --without-ppl \ + `# [4]` --enable-__cxa_atexit \ + `# [5]` --with-mpfr-include="$(pwd)/../mpfr/src" \ + --with-mpfr-lib="$(pwd)/mpfr/src/.libs" \ + `# [6]` --with-system-zlib +build-commands: +- cd o && make +install-commands: +- cd o && make DESTDIR="$DESTDIR" install +- ln -s gcc "$DESTDIR/$PREFIX/bin/cc" +- | + for fortran_alias in f77 f90 f95; do + ln -s gfortran "$DESTDIR/$PREFIX/bin/$fortran_alias" + done |