mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Build with the $RDYNAMIC flag on Darwin as well as other platforms.
Part of <rdar://problem/14620988> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187710 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
75311b7b4d
commit
0cffe07771
@ -612,17 +612,14 @@ ifndef KEEP_SYMBOLS
|
||||
Install.StripFlag += -s
|
||||
endif
|
||||
|
||||
ifdef TOOL_NO_EXPORTS
|
||||
DynamicFlags :=
|
||||
else
|
||||
DynamicFlag := $(RDYNAMIC)
|
||||
endif
|
||||
|
||||
# Adjust linker flags for building an executable
|
||||
ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
|
||||
ifndef TOOL_NO_EXPORTS
|
||||
LD.Flags += $(RDYNAMIC)
|
||||
endif
|
||||
ifneq ($(HOST_OS), Darwin)
|
||||
ifdef TOOLNAME
|
||||
LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib' $(DynamicFlag)
|
||||
LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib'
|
||||
endif
|
||||
else
|
||||
ifneq ($(DARWIN_MAJVERS),4)
|
||||
|
@ -534,21 +534,18 @@ ifndef KEEP_SYMBOLS
|
||||
Install.StripFlag += -s
|
||||
endif
|
||||
|
||||
ifdef TOOL_NO_EXPORTS
|
||||
DynamicFlags :=
|
||||
else
|
||||
DynamicFlag := $(RDYNAMIC)
|
||||
endif
|
||||
|
||||
# Adjust linker flags for building an executable
|
||||
ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
|
||||
ifndef TOOL_NO_EXPORTS
|
||||
LD.Flags += $(RDYNAMIC)
|
||||
endif
|
||||
ifneq ($(HOST_OS), Darwin)
|
||||
ifdef TOOLNAME
|
||||
LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib'
|
||||
ifdef EXAMPLE_TOOL
|
||||
LD.Flags += $(RPATH) -Wl,$(ExmplDir) $(DynamicFlag)
|
||||
LD.Flags += $(RPATH) -Wl,$(ExmplDir)
|
||||
else
|
||||
LD.Flags += $(RPATH) -Wl,$(ToolDir) $(DynamicFlag)
|
||||
LD.Flags += $(RPATH) -Wl,$(ToolDir)
|
||||
endif
|
||||
endif
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user