Removed hardcoded CFLAGS
This commit is contained in:
parent
f740473319
commit
a11ffb64f5
@ -18,9 +18,8 @@ rm -rf $DESTDIR
|
|||||||
|
|
||||||
echo "Configuring nano..."
|
echo "Configuring nano..."
|
||||||
CFLAGS="$CFLAGS" ./configure \
|
CFLAGS="$CFLAGS" ./configure \
|
||||||
--prefix=/usr
|
--prefix=/usr \
|
||||||
--disable-utf8 \
|
LDFLAGS=-L$WORK_DIR/overlay/ncurses/ncurses_installed/usr/include
|
||||||
CFLAGS="-Os -s -fno-stack-protector -U_FORTIFY_SOURCE"
|
|
||||||
|
|
||||||
echo "Building nano..."
|
echo "Building nano..."
|
||||||
make -j $NUM_JOBS
|
make -j $NUM_JOBS
|
||||||
|
@ -22,7 +22,7 @@ sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in
|
|||||||
|
|
||||||
# Configure Ncurses
|
# Configure Ncurses
|
||||||
echo "Configuring Ncurses..."
|
echo "Configuring Ncurses..."
|
||||||
./configure \
|
CFLAGS="$CFLAGS" ./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--with-termlib \
|
--with-termlib \
|
||||||
--with-terminfo-dirs=/lib/terminfo \
|
--with-terminfo-dirs=/lib/terminfo \
|
||||||
@ -36,7 +36,6 @@ echo "Configuring Ncurses..."
|
|||||||
--with-shared \
|
--with-shared \
|
||||||
CPPFLAGS=-I$PWD/ncurses/widechar \
|
CPPFLAGS=-I$PWD/ncurses/widechar \
|
||||||
LDFLAGS=-L$PWD/lib \
|
LDFLAGS=-L$PWD/lib \
|
||||||
CFLAGS="-Os -s -fno-stack-protector -U_FORTIFY_SOURCE" \
|
|
||||||
CPPFLAGS="-P"
|
CPPFLAGS="-P"
|
||||||
|
|
||||||
# Most configuration switches are from AwlsomeAlex
|
# Most configuration switches are from AwlsomeAlex
|
||||||
@ -68,3 +67,4 @@ cp -r $DESTDIR/usr/* $ROOTFS
|
|||||||
echo "ncurses has been installed."
|
echo "ncurses has been installed."
|
||||||
|
|
||||||
cd $SRC_DIR
|
cd $SRC_DIR
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user