Add 6.2 - Build ncurses

This commit is contained in:
Aditya 2023-01-09 10:56:56 +05:30
parent d61631a9df
commit fc4249236b
2 changed files with 58 additions and 1 deletions

View file

@ -0,0 +1,45 @@
#!/bin/bash
cd $LFS/sources
tar xf ncurses-6.3.tar.gz
cd ncurses-6.3
sed -i s/mawk// configure
mkdir build
pushd build
../configure
make -C include
make -C progs tic
popd
./configure --prefix=/usr \
--host=$LFS_TGT \
--build=$(./config.guess) \
--mandir=/usr/share/man \
--with-manpage-format=normal \
--with-shared \
--without-normal \
--with-cxx-shared \
--without-debug \
--without-ada \
--disable-stripping \
--enable-widec
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make DESTDIR=$LFS TIC_PATH=$(pwd)/build/progs/tic install
echo "INPUT(-lncursesw)" > $LFS/usr/lib/libncurses.so
cd $LFS/sources
rm -rf ncurses-6.3

View file

@ -200,6 +200,18 @@ su - lfs -c "bash $PWD/chapter6/6.2-m4.sh"
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter6/6/2-m4.sh"
stop_script "chapter6/6.2-m4.sh"
fi
# Chapter 6.3
# ===========
echo "Building ncurses"
su - lfs -c "bash $PWD/chapter6/6.3-ncurses.sh"
# Exit onn error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter6/6.3-ncurses.sh"
fi