mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
Don't pass --export-dynamic if TOOL_NO_EXPORTS is set.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116550 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9d5d48bc41
commit
31552a9715
@ -548,15 +548,21 @@ ifndef KEEP_SYMBOLS
|
|||||||
Install.StripFlag += -s
|
Install.StripFlag += -s
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef TOOL_NO_EXPORTS
|
||||||
|
DynamicFlags :=
|
||||||
|
else
|
||||||
|
DynamicFlag := $(RDYNAMIC)
|
||||||
|
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) $(RDYNAMIC)
|
LD.Flags += $(RPATH) -Wl,$(ExmplDir) $(DynamicFlag)
|
||||||
else
|
else
|
||||||
LD.Flags += $(RPATH) -Wl,$(ToolDir) $(RDYNAMIC)
|
LD.Flags += $(RPATH) -Wl,$(ToolDir) $(DynamicFlag)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user