summaryrefslogtreecommitdiff
path: root/gcc.morph
blob: dddcdca01f221a56379b9a32f60d658ff1356d4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
    "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"
    ]
}