From 5761582562554a098c7c89b3cc9d9124bef1abe7 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Tue, 28 Feb 2023 10:13:44 +0100 Subject: [PATCH] Use MacOS SDK 10.9 to prevent apple notarization failures Motivation: When using an SDK older then 10.9 the notarization process fails and Apple sends the reason for the failure is that "The binary uses an SDK older than the 10.9 SDK Modifications: Update to 10.9 Result: No more problems with apple notarization. --- resolver-dns-native-macos/pom.xml | 10 +++++----- transport-native-kqueue/pom.xml | 10 +++++----- transport-native-unix-common/pom.xml | 8 ++++---- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/resolver-dns-native-macos/pom.xml b/resolver-dns-native-macos/pom.xml index 110966c8941..4551ed086e3 100644 --- a/resolver-dns-native-macos/pom.xml +++ b/resolver-dns-native-macos/pom.xml @@ -35,7 +35,7 @@ - LDFLAGS=-Wl,-weak_library,${unix.common.lib.unpacked.dir}/lib${unix.common.lib.name}.a -Wl,-platform_version,macos,10.6,10.6 + LDFLAGS=-Wl,-weak_library,${unix.common.lib.unpacked.dir}/lib${unix.common.lib.name}.a -Wl,-platform_version,macos,10.9,10.9 false @@ -80,7 +80,7 @@ ${jni.compiler.args.ldflags} ${jni.compiler.args.cflags} - MACOSX_DEPLOYMENT_TARGET=10.6 + MACOSX_DEPLOYMENT_TARGET=10.9 @@ -246,8 +246,8 @@ mac-intel-cross-compile - LDFLAGS=-arch x86_64 -Wl,-weak_library,${unix.common.lib.unpacked.dir}/lib${unix.common.lib.name}.a -Wl,-platform_version,macos,10.6,10.6 - CFLAGS=-target x86_64-apple-macos10.6 -O3 -Werror -fno-omit-frame-pointer -Wunused-variable -fvisibility=hidden -I${unix.common.include.unpacked.dir} + LDFLAGS=-arch x86_64 -Wl,-weak_library,${unix.common.lib.unpacked.dir}/lib${unix.common.lib.name}.a -Wl,-platform_version,macos,10.9,10.9 + CFLAGS=-target x86_64-apple-macos10.9 -O3 -Werror -fno-omit-frame-pointer -Wunused-variable -fvisibility=hidden -I${unix.common.include.unpacked.dir} ${os.detected.name}-x86_64 @@ -297,7 +297,7 @@ ${jni.compiler.args.ldflags} ${jni.compiler.args.cflags} --host=x86_64-apple-darwin - MACOSX_DEPLOYMENT_TARGET=10.6 + MACOSX_DEPLOYMENT_TARGET=10.9 diff --git a/transport-native-kqueue/pom.xml b/transport-native-kqueue/pom.xml index 550a5e3fda1..f2c61c5c785 100644 --- a/transport-native-kqueue/pom.xml +++ b/transport-native-kqueue/pom.xml @@ -35,7 +35,7 @@ - LDFLAGS=-Wl,-weak_library,${unix.common.lib.unpacked.dir}/lib${unix.common.lib.name}.a -Wl,-platform_version,macos,10.6,10.6 + LDFLAGS=-Wl,-weak_library,${unix.common.lib.unpacked.dir}/lib${unix.common.lib.name}.a -Wl,-platform_version,macos,10.9,10.9 @@ -82,7 +82,7 @@ - MACOSX_DEPLOYMENT_TARGET=10.6 + MACOSX_DEPLOYMENT_TARGET=10.9 --libdir=${project.build.directory}/native-build/target/lib @@ -251,8 +251,8 @@ ${os.detected.name}-x86_64 ${os.detected.name}.x86_64 - CFLAGS=-target x86_64-apple-macos10.6 -O3 -Werror -fno-omit-frame-pointer -Wunused-variable -fvisibility=hidden -I${unix.common.include.unpacked.dir} - LDFLAGS=-arch x86_64 -Wl,-weak_library,${unix.common.lib.unpacked.dir}/lib${unix.common.lib.name}.a -Wl,-platform_version,macos,10.6,10.6 + CFLAGS=-target x86_64-apple-macos10.9 -O3 -Werror -fno-omit-frame-pointer -Wunused-variable -fvisibility=hidden -I${unix.common.include.unpacked.dir} + LDFLAGS=-arch x86_64 -Wl,-weak_library,${unix.common.lib.unpacked.dir}/lib${unix.common.lib.name}.a -Wl,-platform_version,macos,10.9,10.9 true @@ -297,7 +297,7 @@ ${jni.compiler.args.ldflags} ${jni.compiler.args.cflags} - MACOSX_DEPLOYMENT_TARGET=10.6 + MACOSX_DEPLOYMENT_TARGET=10.9 --host=x86_64-apple-darwin --libdir=${project.build.directory}/native-build/target/lib diff --git a/transport-native-unix-common/pom.xml b/transport-native-unix-common/pom.xml index e5b1f38b748..708fdba5126 100644 --- a/transport-native-unix-common/pom.xml +++ b/transport-native-unix-common/pom.xml @@ -154,12 +154,12 @@ - + - + @@ -297,9 +297,9 @@ - + - +