From c073c8cc0a48851cede977dd0b55d0cf69f6185a Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com> Date: Mon, 31 May 2021 18:29:29 +0700 Subject: [PATCH] fix iOS build --- buildjdk.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildjdk.sh b/buildjdk.sh index 4a5eb94..575fdea 100755 --- a/buildjdk.sh +++ b/buildjdk.sh @@ -13,7 +13,7 @@ fi export FREETYPE_DIR=$PWD/freetype-$BUILD_FREETYPE_VERSION/build_android-$TARGET_SHORT export CUPS_DIR=$PWD/cups-2.2.4 -export CFLAGS+=" -DLE_STANDALONE -Wno-error" # -I$FREETYPE_DIR -I$CUPS_DI +export CFLAGS+=" -DLE_STANDALONE" # -I$FREETYPE_DIR -I$CUPS_DI # if [ "$TARGET_JDK" == "aarch32" ] || [ "$TARGET_JDK" == "aarch64" ] # then @@ -42,7 +42,7 @@ if [ "$BUILD_IOS" != "1" ]; then else ln -s -f /opt/X11/include/X11 $ANDROID_INCLUDE/ platform_args=--with-toolchain-type=clang - AUTOCONF_x11arg="--with-x=/opt/X11/include/X11 --disable-precompiled-headers --prefix=/usr/lib" + AUTOCONF_x11arg="--with-x=/opt/X11/include/X11 --disable-precompiled-headers --disable-zip-debug-info --prefix=/usr/lib" sameflags="-arch arm64 -isysroot $thesysroot -miphoneos-version-min=12.0 -DHEADLESS=1 -I$PWD/ios-missing-include -Wno-implicit-function-declaration" export CFLAGS+=" $sameflags" export CXXFLAGS="$sameflags"