comparison images/lfs-bootstrap/mnt/build/gettext.sh @ 0:bcd2e358d57f

Start by copying the existing control image building infrastructure from Aboriginal Linux, and shuffling the layout around a bit.
author Rob Landley <rob@landley.net>
date Sun, 03 Jul 2011 17:23:26 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:bcd2e358d57f
1 #!/bin/sh
2
3 # Swap out incestuous knowledge of the internals of glibc for incestuous
4 # knowledge of the internals of uClibc. (The resulting code should never
5 # trigger anyway, but it needs to be able to _compile_...)
6
7 sed -i 's/thread_locale->__names\[category]/thread_locale->cur_locale/' \
8 gettext-runtime/intl/localename.c gettext-tools/gnulib-lib/localename.c &&
9 sed -i 's%LIBS = @LIBS@%LIBS = @LIBS@ ../libgrep/libgrep.a%' \
10 gettext-tools/src/Makefile.in gettext-tools/tests/Makefile.in &&
11
12 ./configure --prefix=/usr --docdir=/usr/share/doc/gettext &&
13 make -j $CPUS || exit 1
14
15 if [ ! -z "$DOCS" ]
16 then
17 make check || exit 1
18 fi
19
20 make install