Skip to content

Commit 15c85ba

Browse files
committed
LIBCRYPTO: Fix problem in finding android version for some NDKs
1 parent 7c6297e commit 15c85ba

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

libraries/libcrypto/make.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ macosx)
3535
android*)
3636
EXTRACONF="android-arm -D__ANDROID_API__=$SYS_ANDROIDAPI"
3737
XX_ANDROID_NDK_HOME=`find $SYS_PREFIX -name AndroidVersion.txt 2> /dev/null`
38+
if [ "X$XX_ANDROID_NDK_HOME" = "X" ]; then
39+
XX_ANDROID_NDK_HOME=`find $ANDROIDNDK -name AndroidVersion.txt 2> /dev/null`
40+
fi
3841
export ANDROID_NDK_HOME=`dirname $XX_ANDROID_NDK_HOME`
3942
PATH=`ls -d $SYS_PREFIX/android-ndk-*-toolchain/bin`:$PATH
4043
# FIXME: This was better `clang` as Android is supposed to phase

make.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ make_stringfile()
693693
string_srcs="$string_srcs $scmfile"
694694
if [ `isnewer $srcfile $scmfile` = "yes" ]; then
695695
echo " => $name.."
696-
if [ $USE_XETEX = yes ]; then
696+
if [ "$USE_XETEX" = "yes" ]; then
697697
make_string_latex $font $size "$label" $name $scmfile $opt
698698
else
699699
make_string_gd $font $size "$label" $name $scmfile
@@ -1326,7 +1326,7 @@ END
13261326
fi
13271327
cd $here_xelatex
13281328
rm -rf $chkdir
1329-
if [ $USE_XETEX = no ]; then
1329+
if [ "$USE_XETEX" = "no" ]; then
13301330
echo " ** Using GD to render strings"
13311331
else
13321332
touch $SYS_TMPDIR/.use_xetex

0 commit comments

Comments
 (0)