projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build with the $RDYNAMIC flag on Darwin as well as other platforms.
[oota-llvm.git]
/
projects
/
sample
/
Makefile.llvm.rules
diff --git
a/projects/sample/Makefile.llvm.rules
b/projects/sample/Makefile.llvm.rules
index 0258550939afaa5a8cf0f9bd71c6d7b49528afc2..545e629cf34cc9a1afb123891d0d14144a3a937f 100644
(file)
--- a/
projects/sample/Makefile.llvm.rules
+++ b/
projects/sample/Makefile.llvm.rules
@@
-534,21
+534,18
@@
ifndef KEEP_SYMBOLS
Install.StripFlag += -s
endif
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))
# 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
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
else
- LD.Flags += $(RPATH) -Wl,$(ToolDir)
$(DynamicFlag)
+ LD.Flags += $(RPATH) -Wl,$(ToolDir)
endif
endif
else
endif
endif
else