Update 02_build.sh

This commit is contained in:
Michael McMahon 2017-11-13 17:21:46 -05:00 committed by GitHub
parent 011faddb74
commit 595bed2dde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,13 +25,17 @@ echo "Configuring Ncurses..."
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--with-termlib \ --with-termlib \
--with-shared \
--with-terminfo-dirs=/lib/terminfo \ --with-terminfo-dirs=/lib/terminfo \
--with-default-terminfo-dirs=/lib/terminfo \ --with-default-terminfo-dirs=/lib/terminfo \
--without-normal \ --without-normal \
--without-debug \ --without-debug \
--without-cxx-binding \ --without-cxx-binding \
--with-abi-version=5 \ --with-abi-version=5 \
--enable-widec \
--enable-pc-files \
--with-shared \
CPPFLAGS=-I$PWD/ncurses/widechar \
LDFLAGS=-L$PWD/lib \
CFLAGS="-Os -s -fno-stack-protector -U_FORTIFY_SOURCE" \ CFLAGS="-Os -s -fno-stack-protector -U_FORTIFY_SOURCE" \
CPPFLAGS="-P" CPPFLAGS="-P"
@ -47,6 +51,13 @@ make -j $NUM_JOBS
echo "Installing ncurses..." echo "Installing ncurses..."
make -j $NUM_JOBS install DESTDIR=$DESTDIR make -j $NUM_JOBS install DESTDIR=$DESTDIR
# Symnlink wide character libraries
cd $DESTDIR/usr/lib
ln -s libncursesw.so.5 libncurses.so.5
ln -s libncurses.so.5 libncurses.so
ln -s libtinfow.so.5 libtinfo.so.5
ln -s libtinfo.so.5 libtinfo.so
echo "Reducing ncurses size..." echo "Reducing ncurses size..."
strip -g $DESTDIR/usr/bin/* strip -g $DESTDIR/usr/bin/*
@ -57,4 +68,3 @@ cp -r $DESTDIR/usr/* $ROOTFS
echo "ncurses has been installed." echo "ncurses has been installed."
cd $SRC_DIR cd $SRC_DIR