From 0cffe07771742c93b289766789f0a0c61c1b99e9 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Sun, 4 Aug 2013 22:06:11 +0000 Subject: Build with the $RDYNAMIC flag on Darwin as well as other platforms. Part of git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187710 91177308-0d34-0410-b5e6-96231b3b80d8 --- projects/sample/Makefile.llvm.rules | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'projects') diff --git a/projects/sample/Makefile.llvm.rules b/projects/sample/Makefile.llvm.rules index 0258550..545e629 100644 --- a/projects/sample/Makefile.llvm.rules +++ b/projects/sample/Makefile.llvm.rules @@ -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 -- cgit v1.1