The attached patches attempt to fix cross builds. For example, if you
[oota-llvm.git] / tools / lto / Makefile
index c8ad9fe08f350ff04256c2aacba2a5d594ff3295..3120aa52c953afb7e778081652fa7acc7bab8f18 100644 (file)
@@ -22,7 +22,7 @@ LINK_COMPONENTS := $(TARGETS_TO_BUILD) ipo scalaropts linker bitreader bitwriter
 
 include $(LEVEL)/Makefile.common
 
-ifeq ($(OS),Darwin)
+ifeq ($(HOST_OS),Darwin)
     # set dylib internal version number to llvmCore submission number
     ifdef LLVM_SUBMIT_VERSION
         LLVMLibsOptions := $(LLVMLibsOptions) -Wl,-current_version \