diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2013-02-21 17:07:00 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2013-02-21 17:07:02 +0000 |
commit | d0a5aa7efa701b584207f91728faa5b350b616b9 (patch) | |
tree | 518d72963ecfec57725cfe21e786d268be23c25c | |
parent | 31dde8ccd1281152347242e1a376f78f6e82b9d4 (diff) | |
download | gcc-tarball-baserock/genivi/morph-rebase.tar.gz |
Add gcc-sharedbaserock/genivi/morph-rebase
gcc-shared is gcc, including exporting the C++ shared libraries.
-rw-r--r-- | gcc-shared.morph | 18 |
1 files changed, 18 insertions, 0 deletions
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\"" + ] +} + |