jre17 armv7: try building with -O2

This commit is contained in:
Duy Tran Khanh 2021-11-26 16:58:33 +07:00 committed by GitHub
parent a32145f980
commit c60cddbc0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,13 @@ set -e
export FREETYPE_DIR=$PWD/freetype-$BUILD_FREETYPE_VERSION/build_android-$TARGET_SHORT export FREETYPE_DIR=$PWD/freetype-$BUILD_FREETYPE_VERSION/build_android-$TARGET_SHORT
export CUPS_DIR=$PWD/cups-2.2.4 export CUPS_DIR=$PWD/cups-2.2.4
export CFLAGS+=" -DLE_STANDALONE -DANDROID -O3" # -I$FREETYPE_DIR -I$CUPS_DI export CFLAGS+=" -DLE_STANDALONE -DANDROID" # -I$FREETYPE_DIR -I$CUPS_DI
if [ "$TARGET_JDK" == "aarch32" ]
then
export CFLAGS=" -O2"
else
export CFLAGS=" -O3"
fi
# if [ "$TARGET_JDK" == "aarch32" ] || [ "$TARGET_JDK" == "aarch64" ] # if [ "$TARGET_JDK" == "aarch32" ] || [ "$TARGET_JDK" == "aarch64" ]
# then # then