mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Use -object_path_lto when linking executables if building Apple style.
llvm-svn: 165282
This commit is contained in:
parent
21268a786e
commit
25c1125efc
@ -631,19 +631,23 @@ endif
|
|||||||
|
|
||||||
# Adjust linker flags for building an executable
|
# Adjust linker flags for building an executable
|
||||||
ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
|
ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
|
||||||
ifneq ($(HOST_OS), Darwin)
|
ifneq ($(HOST_OS), Darwin)
|
||||||
ifdef TOOLNAME
|
ifdef TOOLNAME
|
||||||
LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib'
|
LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib'
|
||||||
ifdef EXAMPLE_TOOL
|
ifdef EXAMPLE_TOOL
|
||||||
LD.Flags += $(RPATH) -Wl,$(ExmplDir) $(DynamicFlag)
|
LD.Flags += $(RPATH) -Wl,$(ExmplDir) $(DynamicFlag)
|
||||||
else
|
else
|
||||||
LD.Flags += $(RPATH) -Wl,$(ToolDir) $(DynamicFlag)
|
LD.Flags += $(RPATH) -Wl,$(ToolDir) $(DynamicFlag)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
else
|
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user