diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules index 44b8328f422b..4b46e1c93ed5 100644 --- a/llvm/Makefile.rules +++ b/llvm/Makefile.rules @@ -618,7 +618,7 @@ ifndef KEEP_SYMBOLS endif # Adjust linker flags for building an executable -ifneq ($(HOST_OS),Darwin) +ifneq ($(HOST_OS), $(filter $(HOST_OS), Darwin Cygwin MingW)) ifdef TOOLNAME LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib' ifdef EXAMPLE_TOOL