Skip to content

Commit 5b94ad4

Browse files
Update buildjdk.sh
1 parent e82edb1 commit 5b94ad4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

buildjdk.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ LIBFFI_DIR=libffi-3.4.2/build_iphoneos-arm64
6060
cd openjdk
6161
#rm -rf build
6262

63+
export LIBFFI_CFLAGS="-I$LIBFFI_DIR/include"
64+
export LIBFFI_LIBS="-L$LIBFFI_DIR/lib"
65+
6366
# --with-extra-cxxflags="$CXXFLAGS -Dchar16_t=uint16_t -Dchar32_t=uint32_t" \
6467
# --with-extra-cflags="$CPPFLAGS" \
6568
# --with-sysroot="$(xcrun --sdk iphoneos --show-sdk-path)" \
@@ -77,7 +80,6 @@ bash ./configure \
7780
--with-fontconfig-include=$ANDROID_INCLUDE \
7881
--with-freetype-lib=$FREETYPE_DIR/lib \
7982
--with-freetype-include=$FREETYPE_DIR/include/freetype2 \
80-
--with-libffi=$LIBFFI_DIR \
8183
$AUTOCONF_x11arg $AUTOCONF_EXTRA_ARGS \
8284
--x-libraries=/usr/lib \
8385
$platform_args || \

0 commit comments

Comments
 (0)