diff mini-native.sh @ 432:b697ea9d73f3

Use the wrapper for g++, and clean up compiler install slightly better.
author Rob Landley <rob@landley.net>
date Thu, 30 Oct 2008 04:46:08 -0500
parents e39509d8d925
children 716b7af6d8c3
line wrap: on
line diff
--- a/mini-native.sh	Thu Oct 30 01:41:57 2008 -0500
+++ b/mini-native.sh	Thu Oct 30 04:46:08 2008 -0500
@@ -173,10 +173,14 @@
 mv "${TOOLS}"/lib/gcc/*/*/include "${TOOLS}"/gcc/include &&
 mv "${TOOLS}"/lib/gcc/*/* "${TOOLS}"/gcc/lib &&
 mv "${TOOLS}/bin/gcc" "${TOOLS}/bin/rawgcc" &&
+mv "${TOOLS}/bin/g++" "${TOOLS}/bin/rawg++" &&
+rm "${TOOLS}/bin/c++" &&
 "${ARCH}-gcc" "${SOURCES}"/toys/gcc-uClibc.c -Os -s -o "${TOOLS}/bin/gcc" \
-  -DGCC_UNWRAPPED_NAME='"rawgcc"' -DGIMME_AN_S
+  -DGCC_UNWRAPPED_NAME='"rawgcc"' -DGIMME_AN_S &&
+ln "${TOOLS}/bin/gcc" "${TOOLS}/bin/g++" &&
+ln -s g++ "${TOOLS}/bin/c++"
 
-cleanup "${TOOLS}"/{lib/gcc,gcc/lib/install-tools}
+cleanup "${TOOLS}"/{lib/gcc,gcc/lib/install-tools,bin/${ARCH}-unknown-*}
 
 # Build and install make