From 3674a7abc20037dc287f388c22a75d49dc2000ca Mon Sep 17 00:00:00 2001 From: William Harrington Date: Sun, 21 Mar 2021 11:03:16 -0500 Subject: Add chapter 6 commands. Had some fixes for m4 regrding -Wabi=11 and -fpermissive and help2man --no-discard-stderr for m4 and diffutils. Also had to remove host's /usr/lib/libiberty.a as binutils pass2 kept using it for some reason. --- chapter6/m4.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 chapter6/m4.sh (limited to 'chapter6/m4.sh') 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 -- cgit v1.2.3-54-g00ecf