view sources/sections/ @ 1719:78050a31d1ee draft

Sigh. Checked in the wrong version of the patch (typo fix).
author Rob Landley <>
date Tue, 06 Jan 2015 13:15:33 -0600
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 "$STAGE_DIR"/lib/ &&
ln -s libuClibc++.a "$STAGE_DIR"/lib/libstdc++.a