From e55db741523b51f3f754b6dd62c5e0f52bb83b98 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Tue, 18 Aug 2009 00:40:33 +0000 Subject: The attached patches attempt to fix cross builds. For example, if you try to use i686-darwin to build for arm-eabi, you'll quickly run into several false assumptions that the target OS must be the same as the host OS. These patches split $(OS) into $(HOST_OS) and $(TARGET_OS) to help builds like "make check" and the test-suite able to cross compile. Along the way a target of *-unknown-eabi is defined as "Freestanding" so that TARGET_OS checks have something to work with. Patch by Sandeep Patel! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79296 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.config.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile.config.in') diff --git a/Makefile.config.in b/Makefile.config.in index e2d2c57b4d..ecd05957d9 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -89,8 +89,11 @@ PROJ_mandir := $(DESTDIR)$(PROJ_prefix)/share/man LLVM_ON_UNIX:=@LLVM_ON_UNIX@ LLVM_ON_WIN32:=@LLVM_ON_WIN32@ -# Target operating system for which LLVM will be compiled. +# Host operating system for which LLVM will be run. OS=@OS@ +HOST_OS=@HOST_OS@ +# Target operating system for which LLVM will compile for. +TARGET_OS=@TARGET_OS@ # Target hardware architecture ARCH=@ARCH@ @@ -128,6 +131,7 @@ LDFLAGS+=@LDFLAGS@ # Path to the library archiver program. AR_PATH = @AR@ +AR = @AR@ # Path to the nm program NM_PATH = @NM@ -- cgit v1.2.3-18-g5258