summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-01-10 12:30:35 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-01-10 12:30:35 +0000
commit7e34620a1948475a8317b252f5cfa3b99640ad2d (patch)
tree1fbc34fee26075a096434b06fcab7a50dcfce5fc
parentb4a5df67f1382a33f4535eb1b10600ca52d294d3 (diff)
downloadgcc-tarball-7e34620a1948475a8317b252f5cfa3b99640ad2d.tar.gz
add morphology
-rw-r--r--gcc.morph18
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\""
+ ]
+}
+