Mercurial > hg > aboriginal
diff mini-native.sh @ 447:4ed02d53fc92
Add C++ support to native compiler, based on uClibc++.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 03 Nov 2008 21:33:34 -0600 |
parents | c2215a078923 |
children | 61a26b8092bf |
line wrap: on
line diff
--- a/mini-native.sh Mon Nov 03 21:00:46 2008 -0600 +++ b/mini-native.sh Mon Nov 03 21:33:34 2008 -0600 @@ -199,13 +199,21 @@ # Build and install uClibc++ -#setupfor uClibc++ -#make defconfig && -#sed -r -i 's/(UCLIBCXX_HAS_(TLS|LONG_DOUBLE))=y/# \1 is not set/' .config && -#make oldconfig && -#CROSS="$ARCH"- make -#install something -#cleanup uClibc++ +setupfor uClibc++ +CROSS= make defconfig && +sed -r -i 's/(UCLIBCXX_HAS_(TLS|LONG_DOUBLE))=y/# \1 is not set/' .config && +sed -r -i '/UCLIBCXX_RUNTIME_PREFIX=/s/".*"/""/' .config && +CROSS= make oldconfig && +CROSS="$ARCH"- make && +CROSS= make install PREFIX="${TOOLS}/c++" && + +# Move libraries somewhere useful. + +mv "${TOOLS}"/c++/lib/* "${TOOLS}"/lib && +rm -rf "${TOOLS}"/c++/{lib,bin} && +ln -s libuClibc++.so "${TOOLS}"/lib/libstdc++.so + +cleanup uClibc++ # Build and install make