llvm.org GIT mirror llvm / 10181ae
Add an explicit -object_path_lto flag during linking with a uniquified temporary file name if building Apple-style. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165185 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 8 years ago
2 changed file(s) with 15 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
4343 # command line.
4444 DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/')
4545 ifneq ($(DARWIN_VERS),8)
46 LLVMLibsOptions := $(LLVMLibsOptions) \
46 LLVMLibsOptions := $(LLVMLibsOptions) \
4747 -Wl,-install_name \
4848 -Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)"
4949 endif
50
51 # If we're doing an Apple-style build, add the LTO object path.
52 ifeq ($(RC_BUILDIT),YES)
53 TempFile = $(shell mktemp ${OBJROOT}/profile_rt-lto.XXXXXX)
54 LLVMLibsOptions := $(LLVMLibsOptions) \
55 -Wl,-object_path_lto -Wl,$(TempFile)
56 endif
5057 endif
4848 -Wl,-install_name \
4949 -Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)"
5050 endif
51
52 # If we're doing an Apple-style build, add the LTO object path.
53 ifeq ($(RC_BUILDIT),YES)
54 TempFile = $(shell mktemp ${OBJROOT}/llvm-lto.XXXXXX)
55 LLVMLibsOptions := $(LLVMLibsOptions) \
56 -Wl,-object_path_lto -Wl,$(TempFile)
57 endif
5158 endif