[llvm-commits] [llvm] r116550 - /llvm/trunk/Makefile.rules
Rafael Espindola
rafael.espindola at gmail.com
Thu Oct 14 17:58:12 PDT 2010
Author: rafael
Date: Thu Oct 14 19:58:12 2010
New Revision: 116550
URL: http://llvm.org/viewvc/llvm-project?rev=116550&view=rev
Log:
Don't pass --export-dynamic if TOOL_NO_EXPORTS is set.
Modified:
llvm/trunk/Makefile.rules
Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=116550&r1=116549&r2=116550&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Thu Oct 14 19:58:12 2010
@@ -548,15 +548,21 @@
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
More information about the llvm-commits
mailing list