When cross-building, the CFLAGS and CXXFLAGS are for the target, and don't
authorJim Grosbach <grosbach@apple.com>
Fri, 30 Oct 2009 19:53:38 +0000 (19:53 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 30 Oct 2009 19:53:38 +0000 (19:53 +0000)
apply to the build tools. If we want to allow build tool flags input, we
should have separate inputs (BUILD_CFLAGS and BUILD_CXXFLAGS, perhaps).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85607 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile

index cc7e550a1bdaa4834597ddd2721069024ef94008..671f92c77e87d3c1b2bcc9b95a2bee28fdb2344b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -95,6 +95,8 @@ cross-compile-build-tools:
        $(Verb) if [ ! -f BuildTools/Makefile ]; then \
           $(MKDIR) BuildTools; \
          cd BuildTools ; \
+         unset CFLAGS ; \
+         unset CXXFLAGS ; \
          $(PROJ_SRC_DIR)/configure --build=$(BUILD_TRIPLE) \
                --host=$(BUILD_TRIPLE) --target=$(BUILD_TRIPLE); \
          cd .. ; \