aboutsummaryrefslogtreecommitdiffstats
path: root/chapter6/m4.sh
blob: aeb102432765cbc036c22d6b7fa8f1e1d6660ef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
set -e

sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c &&
echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h &&

export CFLAGS="-Wabi=11 -fpermissive"

sed '/^HELP2MAN/s/$/ --no-discard-stderr/' -i doc/Makefile.in

./configure --prefix=/usr \
            --host="${LFS_TGT}" \
            --build="$(build-aux/config.guess)" &&
make &&
make DESTDIR="${LFS}" -j1 install