diff --git a/buildjdk.sh b/buildjdk.sh index d75f95f..4e1af03 100755 --- a/buildjdk.sh +++ b/buildjdk.sh @@ -46,6 +46,8 @@ if [ "$BUILD_IOS" != "1" ]; then ar cru dummy_libs/libthread_db.a else ln -s -f /opt/X11/include/X11 $ANDROID_INCLUDE/ + ln -sfn $themacsysroot/System/Library/Frameworks/CoreAudio.framework/Headers $ANDROID_INCLUDE/CoreAudio + ln -sfn $themacsysroot/System/Library/Frameworks/IOKit.framework/Headers $ANDROID_INCLUDE/IOKit if [ "$(uname -p)" == "arm" ]; then ln -s -f /opt/homebrew/include/fontconfig $ANDROID_INCLUDE/ else diff --git a/macos-host-cc b/macos-host-cc index 1bd3c6d..16d5628 100755 --- a/macos-host-cc +++ b/macos-host-cc @@ -1,9 +1,10 @@ #!/bin/bash set -e +args=$@ # hack: remove iOS CFLAGS if [ "$(uname -m)" == "x86_64" ]; then - args=${@/arm64/x86_64} + args=${args/arm64/x86_64} fi args=${args/"-isysroot $thesysroot"/} args=${args/"-miphoneos-version-min=12.0"/}