aboutsummaryrefslogtreecommitdiffstats
path: root/chapter6/m4.sh
diff options
context:
space:
mode:
Diffstat (limited to 'chapter6/m4.sh')
-rw-r--r--chapter6/m4.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/chapter6/m4.sh b/chapter6/m4.sh
new file mode 100644
index 0000000..5949e11
--- /dev/null
+++ b/chapter6/m4.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+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