summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2014-11-16 15:25:23 +0000
committerJohn-Mark Bell <jmb@netsurf-browser.org>2014-11-16 15:26:02 +0000
commit5343265256275893914612a2328978ea6af71bff (patch)
tree6500fa72335d4b3ec4be1acce8cb2c50b2f59750
parent7f9ba003c0704f476294927b2c01a3996c2dec8f (diff)
downloadbuildsystem-5343265256275893914612a2328978ea6af71bff.tar.gz
buildsystem-5343265256275893914612a2328978ea6af71bff.tar.bz2
Only set CC__ if we're cross compiling
-rw-r--r--makefiles/Makefile.tools5
1 files changed, 2 insertions, 3 deletions
diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools
index 86ab68b..801c8c4 100644
--- a/makefiles/Makefile.tools
+++ b/makefiles/Makefile.tools
@@ -72,9 +72,6 @@ ifeq ($(HOST),)
endif
endif
-# Make first-stab at identity of CC
-CC__ := $(CC)
-
ifeq ($(HOST),$(BUILD))
# Native build
@@ -103,6 +100,8 @@ ifeq ($(HOST),$(BUILD))
else
# Cross compiling
+ # Make first-stab at identity of CC
+ CC__ := $(CC)
# Improve our guess at the identity of CC
# (only if CC was not specified by the user)
ifeq ($(origin CC),default)