diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2013-08-14 10:58:40 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2013-08-14 10:58:40 +0000 |
commit | cacfffaed987a877570ee8551c2fc669916fe8ec (patch) | |
tree | 4687c4ca23b9d07da16acb9583b04e7457fbbbaf /gcc.morph | |
parent | 2f39ec7032e3576108133524e4d1bf7638216261 (diff) | |
download | gcc-tarball-cacfffaed987a877570ee8551c2fc669916fe8ec.tar.gz |
Convert JSON morphologies to YAML
Diffstat (limited to 'gcc.morph')
-rw-r--r-- | gcc.morph | 58 |
1 files changed, 42 insertions, 16 deletions
@@ -1,16 +1,42 @@ -{ - "name": "gcc", - "kind": "chunk", - "configure-commands": [ - "mkdir o", - "cd o && \\\n../configure \\\n $(../morph-arch-config) \\\n --prefix=\"$PREFIX\" \\\n `# [1]` --libdir=$PREFIX/lib \\\n --disable-nls \\\n --enable-languages=c,c++,fortran \\\n --enable-shared --enable-threads=posix \\\n `# [2]` --disable-multilib \\\n `# [3]` --disable-libgomp --without-cloog --without-ppl \\\n `# [4]` --enable-__cxa_atexit \\\n `# [5]` --with-mpfr-include=\"$(pwd)/../mpfr/src\" \\\n --with-mpfr-lib=\"$(pwd)/mpfr/src/.libs\" \\\n `# [6]` --with-system-zlib\n" - ], - "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\n ln -s gfortran \"$DESTDIR/$PREFIX/bin/$fortran_alias\"\ndone\n" - ] -} +name: gcc +kind: chunk + +configure-commands: + - mkdir o + + # Configure flag notes: + # 1. An attempt to stop anything going in $PREFIX/lib64 (which doesn't + # fully work; we will need to hobble the multilib configuration in + # config/i386/t-linux64 if we really want to kill /lib64). + # 2. Multilib does not make sense in Baserock. + # 3. Optimisation libraries which for now we do without. + # 4. Recommended by Linux From Scratch; required for C++ ABI + # compatibility with other Linux distributions. + # 5. MPFR is built in the GCC tree, we need to locate it. + # 6. Avoid having more than one copy of ZLib in use on the system + - | + 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 |