Skip to content

Commit a8d39b8

Browse files
committed
doc: explain why passing -mlinker-version is required
1 parent 19612ca commit a8d39b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

depends/hosts/darwin.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ XCODE_BUILD_ID=11C505
55
LD64_VERSION=530
66

77
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.
811
darwin_CC=clang -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION)
912
darwin_CXX=clang++ -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -stdlib=libc++ -mlinker-version=$(LD64_VERSION)
1013

0 commit comments

Comments
 (0)