From b0904dac98619a54e87d3aff312e16655dfc43e5 Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com> Date: Sat, 30 Apr 2022 05:45:08 +0700 Subject: [PATCH] iOS build: set LDFLAGS -miphoneos-version-min --- buildjdk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildjdk.sh b/buildjdk.sh index 2ada27e..5714d16 100755 --- a/buildjdk.sh +++ b/buildjdk.sh @@ -48,7 +48,7 @@ else sameflags="-arch arm64 -isysroot $thesysroot -miphoneos-version-min=12.0 -DHEADLESS=1 -I$PWD/ios-missing-include -Wno-implicit-function-declaration" export CFLAGS+=" $sameflags" export CXXFLAGS="$sameflags" - export LDFLAGS+=" -Wl,-platform_version,12.0.0,14.5" + export LDFLAGS+=" -miphoneos-version-min=12.0" HOMEBREW_NO_AUTO_UPDATE=1 brew install ldid xquartz fi