File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ tar xfv ncurses-6.0.tar.gz
3434
3535cd ncurses-6.0
3636CONFARGS=" --prefix=$PREFIX --disable-shared --without-debug --without-ada --enable-widec --with-cxx-binding"
37+ if [[ $CROSS_COMPILE != " " ]] ; then
38+ CONFARGS=" $CONFARGS --host=$CROSS_COMPILE_HOST "
39+ fi
3740CFLAGS=" -w -O2 $CFLAGS -fPIC" CXXFLAGS=" -w -O2 $CXXFLAGS -fPIC" LDFLAGS=" -s $LDFLAGS -fPIC" ./configure $CONFARGS
3841make -j 4
3942make install.libs
@@ -48,6 +51,9 @@ tar xfv readline-7.0.tar.gz
4851
4952cd readline-7.0
5053CONFARGS=" --prefix=$PREFIX --disable-shared"
54+ if [[ $CROSS_COMPILE != " " ]] ; then
55+ CONFARGS=" $CONFARGS --host=$CROSS_COMPILE_HOST "
56+ fi
5157CFLAGS=" -w -O2 $CFLAGS -fPIC" CXXFLAGS=" -w -O2 $CXXFLAGS -fPIC" LDFLAGS=" -s $LDFLAGS -fPIC" ./configure $CONFARGS
5258make -j 4
5359make install-static
You can’t perform that action at this time.
0 commit comments