mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 10:01:42 +00:00
Add an explicit -object_path_lto flag during linking with a uniquified temporary
file name if building Apple-style. llvm-svn: 165185
This commit is contained in:
parent
84ad5129a2
commit
7dee2557ef
@ -44,8 +44,15 @@ ifeq ($(HOST_OS),Darwin)
|
||||
# command line.
|
||||
DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/')
|
||||
ifneq ($(DARWIN_VERS),8)
|
||||
LLVMLibsOptions := $(LLVMLibsOptions) \
|
||||
LLVMLibsOptions := $(LLVMLibsOptions) \
|
||||
-Wl,-install_name \
|
||||
-Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)"
|
||||
endif
|
||||
|
||||
# If we're doing an Apple-style build, add the LTO object path.
|
||||
ifeq ($(RC_BUILDIT),YES)
|
||||
TempFile = $(shell mktemp ${OBJROOT}/profile_rt-lto.XXXXXX)
|
||||
LLVMLibsOptions := $(LLVMLibsOptions) \
|
||||
-Wl,-object_path_lto -Wl,$(TempFile)
|
||||
endif
|
||||
endif
|
||||
|
@ -49,4 +49,11 @@ ifeq ($(HOST_OS),Darwin)
|
||||
-Wl,-install_name \
|
||||
-Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)"
|
||||
endif
|
||||
|
||||
# If we're doing an Apple-style build, add the LTO object path.
|
||||
ifeq ($(RC_BUILDIT),YES)
|
||||
TempFile = $(shell mktemp ${OBJROOT}/llvm-lto.XXXXXX)
|
||||
LLVMLibsOptions := $(LLVMLibsOptions) \
|
||||
-Wl,-object_path_lto -Wl,$(TempFile)
|
||||
endif
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user