view sources/sections/ @ 906:5e0cbc73da55

Split out linux-headers, uClibc, and uClibc++ as their own sections.
author Rob Landley <>
date Sat, 28 Nov 2009 23:23:24 -0600
line wrap: on
line source

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

# Move libraries somewhere useful.

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