summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cxx-dynamic.morph17
-rw-r--r--gcc-shared.morph18
2 files changed, 35 insertions, 0 deletions
diff --git a/cxx-dynamic.morph b/cxx-dynamic.morph
new file mode 100644
index 0000000000..e65d35217a
--- /dev/null
+++ b/cxx-dynamic.morph
@@ -0,0 +1,17 @@
+{
+ "name": "cxx-dynamic",
+ "kind": "chunk",
+ "configure-commands": [
+ "sed -i 's@\\./fixinc\\.sh@-c true@' gcc/Makefile.in",
+ "mkdir o",
+ "cd o && ../configure --prefix=/usr --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-libgomp --without-ppl --without-cloog"
+ ],
+ "build-commands": [
+ "cd o && make"
+ ],
+ "install-commands": [
+ "cd o && make DESTDIR=\"$DESTDIR\" install-target-libstdc++-v3",
+ "cd o && make DESTDIR=\"$DESTDIR\" install-target-libgcc"
+ ]
+}
+
diff --git a/gcc-shared.morph b/gcc-shared.morph
new file mode 100644
index 0000000000..abf8ee24ff
--- /dev/null
+++ b/gcc-shared.morph
@@ -0,0 +1,18 @@
+{
+ "name": "gcc-shared",
+ "kind": "chunk",
+ "configure-commands": [
+ "sed -i 's@\\./fixinc\\.sh@-c true@' gcc/Makefile.in",
+ "mkdir o",
+ "cd o && ../configure --prefix=/usr --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-libgomp --without-ppl --without-cloog"
+ ],
+ "build-commands": [
+ "cd o && make"
+ ],
+ "install-commands": [
+ "cd o && make DESTDIR=\"$DESTDIR\" install",
+ "for f in `find \"$DESTDIR\" -name libgcc.a`; do EH=\"`echo \"$f\" | sed 's/libgcc/&_eh/'`\" && if [ ! -e \"$EH\" ]; then ln -s libgcc.a \"$EH\"; fi; done",
+ "ln -s gcc \"$DESTDIR/usr/bin/cc\""
+ ]
+}
+