diff options
author | fanquake <fanquake@gmail.com> | 2020-06-26 14:41:08 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-06-29 16:48:59 +0800 |
commit | a8d39b88406e2047746366355666b5f603105a2e (patch) | |
tree | 785ebfabe22c65e9650efff10b21c19543ffd8f8 /depends/hosts | |
parent | 19612ca2eb2e335c8ccc9c0f33421df22f1cc3b6 (diff) |
doc: explain why passing -mlinker-version is required
Diffstat (limited to 'depends/hosts')
-rw-r--r-- | depends/hosts/darwin.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/depends/hosts/darwin.mk b/depends/hosts/darwin.mk index 5f0bffa5cb..0d4fab937d 100644 --- a/depends/hosts/darwin.mk +++ b/depends/hosts/darwin.mk @@ -5,6 +5,9 @@ XCODE_BUILD_ID=11C505 LD64_VERSION=530 OSX_SDK=$(SDK_PATH)/Xcode-$(XCODE_VERSION)-$(XCODE_BUILD_ID)-extracted-SDK-with-libcxx-headers + +# When cross-compiling for Darwin using Clang, -mlinker-version must be passed to +# ensure that modern linker features are enabled. darwin_CC=clang -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION) darwin_CXX=clang++ -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -stdlib=libc++ -mlinker-version=$(LD64_VERSION) |