Merge pull request #96 from TechnologyClassroom/remove-hardcoded-CFLAGS

Removed hardcoded CFLAGS
This commit is contained in:
Ivan Davidov 2017-11-15 20:45:22 +02:00 committed by GitHub
commit 4e28d07dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -18,9 +18,8 @@ rm -rf $DESTDIR
echo "Configuring nano..."
CFLAGS="$CFLAGS" ./configure \
--prefix=/usr
--disable-utf8 \
CFLAGS="-Os -s -fno-stack-protector -U_FORTIFY_SOURCE"
--prefix=/usr \
LDFLAGS=-L$WORK_DIR/overlay/ncurses/ncurses_installed/usr/include
echo "Building nano..."
make -j $NUM_JOBS

View File

@ -22,7 +22,7 @@ sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in
# Configure Ncurses
echo "Configuring Ncurses..."
./configure \
CFLAGS="$CFLAGS" ./configure \
--prefix=/usr \
--with-termlib \
--with-terminfo-dirs=/lib/terminfo \
@ -36,7 +36,6 @@ echo "Configuring Ncurses..."
--with-shared \
CPPFLAGS=-I$PWD/ncurses/widechar \
LDFLAGS=-L$PWD/lib \
CFLAGS="-Os -s -fno-stack-protector -U_FORTIFY_SOURCE" \
CPPFLAGS="-P"
# Most configuration switches are from AwlsomeAlex
@ -68,3 +67,4 @@ cp -r $DESTDIR/usr/* $ROOTFS
echo "ncurses has been installed."
cd $SRC_DIR