summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-02-21 10:19:22 +0000
committerTim Northover <tnorthover@apple.com>2014-02-21 10:19:22 +0000
commitdec7f55adcd8487a99cca5dbd90205a0fe1e73e7 (patch)
tree8db7a88238ea6c79f839c3143b3bee4e86ec451d /make
parent24934efcf6297f55238c5eb6a986dfaaffe6ea29 (diff)
Darwin: use the compiler-provided linker
When actually compiling we use clang for the final .dylib creation stage, so we should ask it what linker it'll use when detecting support for our architectures. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'make')
-rw-r--r--make/platform/clang_darwin.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/make/platform/clang_darwin.mk b/make/platform/clang_darwin.mk
index 3dd18e1a6..96eca7b7a 100644
--- a/make/platform/clang_darwin.mk
+++ b/make/platform/clang_darwin.mk
@@ -46,7 +46,7 @@ XCRunSdkPath = \
###
CC := $(call XCRun,clang)
-LD := $(call XCRun,ld)
+LD := $(shell $(CC) -print-prog-name=ld)
AR := $(call XCRun,ar)
RANLIB := $(call XCRun,ranlib)
STRIP := $(call XCRun,strip)