summaryrefslogtreecommitdiff
path: root/stage1-gcc.morph
blob: bd353b1a80c9e29f9318893ffc2517133b94f44b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
    "name": "stage1-gcc",
    "kind": "chunk",
    "configure-commands": [
        "mkdir o",
        "cd o &&\n../configure \\\n  $(morph-arch-config) \\\n  --build=$(sh ../config.guess) --host=$(sh ../config.guess) \\\n  --target=$TARGET_STAGE1 \\\n  --prefix=\"$PREFIX\" \\\n  --disable-bootstrap --disable-nls \\\n  `# [1]` --libdir=\"$PREFIX/lib\" --disable-multilib --disable-libgomp \\\n          --without-cloog --without-ppl \\\n          --with-mpfr-include=\"$(pwd)/../mpfr/src\" \\\n          --with-mpfr-lib=\"$(pwd)/mpfr/src/.libs\" \\\n  `# [2]` --with-local-prefix=\"$PREFIX\" \\\n  `# [3]` --with-native-system-header-dir=\"$PREFIX/include\" \\\n  `# [4]` --enable-languages=c --disable-decimal-float \\\n          --disable-libmudflap --disable-libquadmath --disable-libssp \\\n          --disable-shared --disable-threads --disable-target-libiberty \\\n          --disable-target-zlib --without-headers --with-newlib \\\n          --with-system-zlib\n"
    ],
    "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)\nln -sv libgcc.a $(echo $libgcc_filename | sed 's/libgcc/&_eh/')\n"
    ]
}