by Takumi Nakamura.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110016
91177308-0d34-0410-b5e6-
96231b3b80d8
endif
# Adjust linker flags for building an executable
endif
# Adjust linker flags for building an executable
-ifneq ($(HOST_OS), $(filter $(HOST_OS), Darwin Cygwin MingW))
+ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
+ifneq ($(HOST_OS), Darwin)
ifdef TOOLNAME
LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib'
ifdef EXAMPLE_TOOL
ifdef TOOLNAME
LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib'
ifdef EXAMPLE_TOOL
LD.Flags += $(RPATH) -Wl,@executable_path/../lib
endif
endif
LD.Flags += $(RPATH) -Wl,@executable_path/../lib
endif
endif
#----------------------------------------------------------
#----------------------------------------------------------