The attached patches attempt to fix cross builds. For example, if you
[oota-llvm.git] / tools / Makefile
index 4f0f54bdfbf84c1dd117880783beaba6e03231fd..a54aeaf376a6d7b074ae0dcf8c52eb1efd9ad610 100644 (file)
@@ -39,7 +39,7 @@ ifeq ($(ENABLE_PIC),1)
 endif
 
 # No support for lto / gold on windows targets
-ifeq ($(OS), $(filter $(OS), Cygwin MingW))
+ifeq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW))
   DIRS := $(filter-out lto gold, $(DIRS))
 endif