llvm.org GIT mirror llvm / 0cffe07
Build with the $RDYNAMIC flag on Darwin as well as other platforms. Part of <rdar://problem/14620988> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187710 91177308-0d34-0410-b5e6-96231b3b80d8 Bob Wilson 6 years ago
2 changed file(s) with 9 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
611611 Install.StripFlag += -s
612612 endif
613613
614 ifdef TOOL_NO_EXPORTS
615 DynamicFlags :=
616 else
617 DynamicFlag := $(RDYNAMIC)
618 endif
619
620614 # Adjust linker flags for building an executable
621615 ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
616 ifndef TOOL_NO_EXPORTS
617 LD.Flags += $(RDYNAMIC)
618 endif
622619 ifneq ($(HOST_OS), Darwin)
623620 ifdef TOOLNAME
624 LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib' $(DynamicFlag)
621 LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib'
625622 endif
626623 else
627624 ifneq ($(DARWIN_MAJVERS),4)
533533 Install.StripFlag += -s
534534 endif
535535
536 ifdef TOOL_NO_EXPORTS
537 DynamicFlags :=
538 else
539 DynamicFlag := $(RDYNAMIC)
540 endif
541
542536 # Adjust linker flags for building an executable
543537 ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
538 ifndef TOOL_NO_EXPORTS
539 LD.Flags += $(RDYNAMIC)
540 endif
544541 ifneq ($(HOST_OS), Darwin)
545542 ifdef TOOLNAME
546543 LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib'
547544 ifdef EXAMPLE_TOOL
548 LD.Flags += $(RPATH) -Wl,$(ExmplDir) $(DynamicFlag)
545 LD.Flags += $(RPATH) -Wl,$(ExmplDir)
549546 else
550 LD.Flags += $(RPATH) -Wl,$(ToolDir) $(DynamicFlag)
547 LD.Flags += $(RPATH) -Wl,$(ToolDir)
551548 endif
552549 endif
553550 else