mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-25 16:32:54 +00:00
Add 6.2 - Build ncurses
This commit is contained in:
parent
d61631a9df
commit
fc4249236b
2 changed files with 58 additions and 1 deletions
45
scripts/chapter6/6.3-ncurses.sh
Normal file
45
scripts/chapter6/6.3-ncurses.sh
Normal 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
|
|
@ -200,6 +200,18 @@ su - lfs -c "bash $PWD/chapter6/6.2-m4.sh"
|
||||||
check_exit_code
|
check_exit_code
|
||||||
if [ $exit_status -ne 0 ]
|
if [ $exit_status -ne 0 ]
|
||||||
then
|
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
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue