diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-10-15 00:58:12 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-10-15 00:58:12 +0000 |
commit | 31552a97154eba6255a8b7ca742af9d0dbd810b7 (patch) | |
tree | b7520ff0492f1fef4d6f5c8433da9c133e8d30aa /Makefile.rules | |
parent | 9d5d48bc41b182a1b76b1df25069ad4fb6fc45a7 (diff) |
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
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules index 62718b73f7..547eb2786e 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -548,15 +548,21 @@ 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)) ifneq ($(HOST_OS), Darwin) ifdef TOOLNAME LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib' ifdef EXAMPLE_TOOL - LD.Flags += $(RPATH) -Wl,$(ExmplDir) $(RDYNAMIC) + LD.Flags += $(RPATH) -Wl,$(ExmplDir) $(DynamicFlag) else - LD.Flags += $(RPATH) -Wl,$(ToolDir) $(RDYNAMIC) + LD.Flags += $(RPATH) -Wl,$(ToolDir) $(DynamicFlag) endif endif else |