aboutsummaryrefslogtreecommitdiffstats
path: root/chapter6/ncurses.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-03-21 11:03:16 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-03-21 11:03:16 -0500
commit3674a7abc20037dc287f388c22a75d49dc2000ca (patch)
tree5592fda7bd314957f4258568225316a5c408aa3f /chapter6/ncurses.sh
parent1cd9d2d59b3dd72518798879976f52bd76f4bb47 (diff)
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.
Diffstat (limited to 'chapter6/ncurses.sh')
-rw-r--r--chapter6/ncurses.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/chapter6/ncurses.sh b/chapter6/ncurses.sh
new file mode 100644
index 0000000..b2721d3
--- /dev/null
+++ b/chapter6/ncurses.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+sed -i s/mawk// configure &&
+
+mkdir build
+pushd build > /dev/null
+ ../configure &&
+ make -C include &&
+ make -C progs tic &&
+popd > /dev/null
+
+./configure --prefix=/usr \
+ --host=${LFS_TGT} \
+ --build=$(./config.guess) \
+ --mandir=/usr/share/man \
+ --with-manpage-format=normal \
+ --with-shared \
+ --without-debug \
+ --without-ada \
+ --without-normal \
+ --enable-widec &&
+make &&
+make DESTDIR=${LFS} TIC_PATH=$(pwd)/build/progs/tic -j1 install &&
+echo "INPUT(-lncursesw)" > ${LFS}/usr/lib/libncurses.so &&
+mv -v ${LFS}/usr/lib/libncursesw.so.6* ${LFS}/lib &&
+ln -sfv ../../lib/$(readlink ${LFS}/usr/lib/libncursesw.so) ${LFS}/usr/lib/libncursesw.so \ No newline at end of file