summaryrefslogtreecommitdiff
path: root/chunks/gcc.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/gcc.morph
parent10dda889872542b8f261555c139791ff34eec9b1 (diff)
downloaddefinitions-0ce6de7adbd5fe6b268e1b8a1422cdfeb7cdebf5.tar.gz
Add chunk morphologies to definitions repositorybaserock/adamcoldrick/chunks-in-definitions-by-kind
Diffstat (limited to 'chunks/gcc.morph')
-rw-r--r--chunks/gcc.morph30
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