We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19612ca commit a8d39b8Copy full SHA for a8d39b8
depends/hosts/darwin.mk
@@ -5,6 +5,9 @@ XCODE_BUILD_ID=11C505
5
LD64_VERSION=530
6
7
OSX_SDK=$(SDK_PATH)/Xcode-$(XCODE_VERSION)-$(XCODE_BUILD_ID)-extracted-SDK-with-libcxx-headers
8
+
9
+# When cross-compiling for Darwin using Clang, -mlinker-version must be passed to
10
+# ensure that modern linker features are enabled.
11
darwin_CC=clang -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION)
12
darwin_CXX=clang++ -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -stdlib=libc++ -mlinker-version=$(LD64_VERSION)
13
0 commit comments