From 31543684d816ab287d2f8444aaa99de00e62e33e Mon Sep 17 00:00:00 2001 From: Mathias-Boulay Date: Sat, 15 Jun 2024 19:25:07 +0200 Subject: [PATCH] fix: arg for jdk 21 only --- 6_buildjdk.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/6_buildjdk.sh b/6_buildjdk.sh index afc3602..2465340 100755 --- a/6_buildjdk.sh +++ b/6_buildjdk.sh @@ -35,12 +35,19 @@ if [[ "$BUILD_IOS" != "1" ]]; then platform_args="--with-toolchain-type=gcc \ --with-freetype-include=$FREETYPE_DIR/include/freetype2 \ --with-freetype-lib=$FREETYPE_DIR/lib \ - --build=x86_64-unknown-linux-gnu \ - OBJCOPY=${OBJCOPY} \ + " + + if [[ $TARGET_VERSION -eq 21 ]]; then + platform_args+="--build=x86_64-unknown-linux-gnu \ + " + fi + + platform_args+="OBJCOPY=${OBJCOPY} \ RANLIB=${RANLIB} \ AR=${AR} \ STRIP=${STRIP} \ " + AUTOCONF_x11arg="--x-includes=$ANDROID_INCLUDE/X11" export CFLAGS+=" -DANDROID"