summaryrefslogtreecommitdiff
path: root/gcc.morph
blob: 120e97cd7d6c5bfd8be7341980a8c0cf3b871502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
    "name": "gcc",
    "kind": "chunk",
    "configure-commands": [
        "sed -i 's@\\./fixinc\\.sh@-c true@' gcc/Makefile.in",
        "mkdir o",
        "cd o && CC=\"/tools/bin/gcc -B/usr/lib -B/usr/lib64\" ../configure --prefix=/usr --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap --disable-libgomp --without-ppl --without-cloog --with-mpfr-include=$(pwd)/../mpfr/src --with-mpfr-lib=$(pwd)/mpfr/src/.libs"
    ],
    "build-commands": [
        "cd o && make BOOT_CFLAGS=\"-g -O2 -I/usr/include -L/usr/lib -L/usr/lib64 -B/usr/lib -B/usr/lib64\""
    ],
    "install-commands": [
        "cd o && make DESTDIR=\"$DESTDIR\" install",
        "if readelf -l \"$DESTDIR\"/usr/bin/gcc | grep tools; then echo bad dynlinker; exit 1; fi",
        "ln -s gcc \"$DESTDIR/usr/bin/cc\""
    ]
}