view sources/control-images/lfs-bootstrap/mnt/build/ @ 1283:ba8e5317049c

More chipping away at the LFS build. Add basic locale support to uClibc config and hit gettext about the head and shoulders with sed until it compiles despite autoconf still being utterly useless.
author Rob Landley <>
date Thu, 11 Nov 2010 04:50:39 -0600
children c054a7a36cd9
line wrap: on
line source


# Swap out incestuous knowledge of the internals of glibc for incestuous
# knowledge of the internals of uClibc.  (Should never trigger anyway.)

sed -i 's/thread_locale->__names\[category]/thread_locale->cur_locale/' \
  gettext-runtime/intl/localename.c gettext-tools/gnulib-lib/localename.c &&
sed -i 's%LIBS = @LIBS@%LIBS = @LIBS@ ../libgrep/libgrep.a%' \
  gettext-tools/src/ gettext-tools/tests/ &&

./configure --prefix=/usr --docdir=/usr/share/doc/gettext &&
make -j $CPUS || exit 1

if [ ! -z "$DOCS" ]
  make check || exit 1

make install