How to link Go programs to a user-defined macOS SDK?

Hi,

I was made aware that go binaries are linked against the macOS 10.7 SDK (10.14 being the current). The resulting problem is, that go binaries cannot be bundled into macOS applications anymore once Apple requires all apps to be notarized. App Notarization requires apps to be linked against macOS SDK 10.9 at least.

Is there a way to force the linker to use a newer SDK? I tried several compiler and linker options and environment variables to no avail (CGO_CFLAGS, extldflags etc).

Thanks in advance!
Heiko

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.