Use -object_path_lto when linking executables if building Apple style.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165282 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2012-10-05 00:22:46 +00:00
parent 5b0f1b3763
commit 0a0311759b

View File

@ -644,6 +644,10 @@ else
ifneq ($(DARWIN_MAJVERS),4) ifneq ($(DARWIN_MAJVERS),4)
LD.Flags += $(RPATH) -Wl,@executable_path/../lib LD.Flags += $(RPATH) -Wl,@executable_path/../lib
endif endif
ifeq ($(RC_BUILDIT),YES)
TempFile := $(shell mktemp ${OBJROOT}/llvm-lto.XXXXXX)
LD.Flags += -Wl,-object_path_lto -Wl,$(TempFile)
endif
endif endif
endif endif