From 5b94ad44b678a060e58d0cf2bfd0cc61731c2238 Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com> Date: Wed, 22 Sep 2021 10:03:12 +0700 Subject: [PATCH] Update buildjdk.sh --- buildjdk.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildjdk.sh b/buildjdk.sh index 35db803..bd08078 100755 --- a/buildjdk.sh +++ b/buildjdk.sh @@ -60,6 +60,9 @@ LIBFFI_DIR=libffi-3.4.2/build_iphoneos-arm64 cd openjdk #rm -rf build +export LIBFFI_CFLAGS="-I$LIBFFI_DIR/include" +export LIBFFI_LIBS="-L$LIBFFI_DIR/lib" + # --with-extra-cxxflags="$CXXFLAGS -Dchar16_t=uint16_t -Dchar32_t=uint32_t" \ # --with-extra-cflags="$CPPFLAGS" \ # --with-sysroot="$(xcrun --sdk iphoneos --show-sdk-path)" \ @@ -77,7 +80,6 @@ bash ./configure \ --with-fontconfig-include=$ANDROID_INCLUDE \ --with-freetype-lib=$FREETYPE_DIR/lib \ --with-freetype-include=$FREETYPE_DIR/include/freetype2 \ - --with-libffi=$LIBFFI_DIR \ $AUTOCONF_x11arg $AUTOCONF_EXTRA_ARGS \ --x-libraries=/usr/lib \ $platform_args || \