view sources/sections/uClibc++.build @ 1187:878dbfe76341

Move $BUILD/logs creation from record-commands.sh to include.sh so it gets reliably recreated when a user blanks the logs and re-runs.
author Rob Landley <rob@landley.net>
date Sun, 01 Aug 2010 15:19:00 -0500
parents fc134a13357e
children d461b345c3c9
line wrap: on
line source

# Build and install 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="$STAGE_DIR/c++" &&

# Move libraries somewhere useful.

mv "$STAGE_DIR"/c++/lib/* "$STAGE_DIR"/lib &&
rm -rf "$STAGE_DIR"/c++/{lib,bin} &&
ln -s libuClibc++.so "$STAGE_DIR"/lib/libstdc++.so &&
ln -s libuClibc++.a "$STAGE_DIR"/lib/libstdc++.a