view images/lfs-bootstrap/mnt/build/ @ 0:bcd2e358d57f

Start by copying the existing control image building infrastructure from Aboriginal Linux, and shuffling the layout around a bit.
author Rob Landley <>
date Sun, 03 Jul 2011 17:23:26 -0500
line wrap: on
line source


# Swap out incestuous knowledge of the internals of glibc for incestuous
# knowledge of the internals of uClibc.  (The resulting code should never
# trigger anyway, but it needs to be able to _compile_...)

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