fix: arg for jdk 21 only

This commit is contained in:
Mathias-Boulay 2024-06-15 19:25:07 +02:00
parent e008fc3ee3
commit 31543684d8

View File

@ -35,12 +35,19 @@ if [[ "$BUILD_IOS" != "1" ]]; then
platform_args="--with-toolchain-type=gcc \ platform_args="--with-toolchain-type=gcc \
--with-freetype-include=$FREETYPE_DIR/include/freetype2 \ --with-freetype-include=$FREETYPE_DIR/include/freetype2 \
--with-freetype-lib=$FREETYPE_DIR/lib \ --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} \ RANLIB=${RANLIB} \
AR=${AR} \ AR=${AR} \
STRIP=${STRIP} \ STRIP=${STRIP} \
" "
AUTOCONF_x11arg="--x-includes=$ANDROID_INCLUDE/X11" AUTOCONF_x11arg="--x-includes=$ANDROID_INCLUDE/X11"
export CFLAGS+=" -DANDROID" export CFLAGS+=" -DANDROID"