comparison images/lfs-bootstrap/mnt/build/util-linux.sh @ 20:e2d5699cee3a

Fix a couple problems with the util-linux build.
author Rob Landley <rob@landley.net>
date Sun, 06 Nov 2011 21:08:49 -0600
parents 0bdce741ba83
children
comparison
equal deleted inserted replaced
19:b151b87ddf35 20:e2d5699cee3a
1 #!/bin/sh 1 #!/bin/sh
2 2
3 sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \ 3 sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
4 -i $(grep -rl '/etc/adjtime' .) && 4 -i $(grep -rl '/etc/adjtime' .) &&
5 # uClibc hasn't got argp.h, and it's the wrong header to include anyway.
6 sed -e 's/<argp[.]h>/<errno.h>/' -i configure &&
7 # They never tested --disable-nls and use gettext() directly without masking it.
8 sed -e '/define _(/{n;/define N_(/a \# define gettext(Text) (Text)' -e '}' -i include/nls.h &&
5 mkdir -p /var/lib/hwclock && 9 mkdir -p /var/lib/hwclock &&
6 ./configure --enable-arch --enable-partx --enable-write --disable-nls && 10 ./configure --enable-arch --enable-partx --enable-write --disable-nls &&
7 make -j $CPUS && 11 make -j $CPUS &&
8 make install 12 make install