Buildjre17 avoid movaps crash (#16)

* Update buildjdk.sh

* Disable SSE for x86 build

* Force stack realignment

* Return to -O3 with stack realignment
This commit is contained in:
ArtDev 2023-07-21 22:12:19 +03:00 committed by GitHub
parent 0099717965
commit fb2a82293a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,9 +8,13 @@ export CFLAGS+=" -DLE_STANDALONE" # -I$FREETYPE_DIR -I$CUPS_DI
if [ "$TARGET_JDK" == "arm" ] # || [ "$BUILD_IOS" == "1" ]
then
export CFLAGS+=" -O3 -D__thumb__"
else
if [ "$TARGET_JDK" == "x86" ]; then
export CFLAGS+=" -O3 -mstackrealign"
else
export CFLAGS+=" -O3"
fi
fi
# if [ "$TARGET_JDK" == "aarch32" ] || [ "$TARGET_JDK" == "aarch64" ]
# then