diff options
Diffstat (limited to 'gcc.morph')
-rw-r--r-- | gcc.morph | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc.morph b/gcc.morph new file mode 100644 index 0000000000..120e97cd7d --- /dev/null +++ b/gcc.morph @@ -0,0 +1,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\"" + ] +} + |