Skip to content

Commit e22771d

Browse files
committed
Fix aarch64 cross compilation
1 parent 6c36d22 commit e22771d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libncurses-5.9.build.bash

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cd objdir
2020
PREFIX=`pwd`
2121
cd -
2222

23-
if [[ $OS == "Msys" || $OS == "Cygwin" || $CROSS_COMPILE_HOST == "i686-w64-mingw32" ]] ; then
23+
if [[ $OS == "Msys" || $OS == "Cygwin" || $CROSS_COMPILE_HOST == "i686-w64-mingw32" || $CROSS_COMPILE_HOST == "aarch64-linux-gnu" ]] ; then
2424
#Avoid compiling ncurses in Windows platform
2525
exit 0
2626
fi
@@ -40,6 +40,7 @@ CONFARGS="--prefix=$PREFIX --disable-shared --without-debug --without-ada --with
4040
if [[ $CROSS_COMPILE != "" ]] ; then
4141
CONFARGS="$CONFARGS --host=$CROSS_COMPILE_HOST"
4242
fi
43+
autoconf
4344
CFLAGS="-w -O2 $CFLAGS -fPIC" CPPFLAGS="-P" CXXFLAGS="-w -O2 $CXXFLAGS -fPIC" LDFLAGS="-s $LDFLAGS -fPIC" ./configure $CONFARGS
4445
make -j 4
4546
make install.libs

0 commit comments

Comments
 (0)