summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-05-03 23:50:12 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-05-04 21:41:49 +0200
commit460e959aa993372d8e2d8f2988f476cf3a44d70b (patch)
tree488624b770db4d5993db6b1aaa2c2545fa2c3280
parentd566fd520935b9f816276ce2851ebff00a532a43 (diff)
downloadrockbox-460e959aa993372d8e2d8f2988f476cf3a44d70b.tar.gz
rockbox-460e959aa993372d8e2d8f2988f476cf3a44d70b.tar.bz2
rockbox-460e959aa993372d8e2d8f2988f476cf3a44d70b.zip
Allow overriding make variables via environment variables.
Fixes cross compiling for Rockbox Utility. Change-Id: I3419cb4c89836ec3bee10072495042b3732fd66b
-rw-r--r--rbutil/libtools.make4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/libtools.make b/rbutil/libtools.make
index de70388010..be2a69e2c7 100644
--- a/rbutil/libtools.make
+++ b/rbutil/libtools.make
@@ -27,8 +27,8 @@ APPVERSION ?= $(shell $(TOP)/../tools/version.sh $(TOP)/..)
CFLAGS += -DVERSION=\""$(APPVERSION)"\"
TARGET_DIR ?= $(abspath .)/
-NATIVECC = gcc
-CC = gcc
+NATIVECC ?= gcc
+CC ?= gcc
CPPDEFINES=$(shell echo foo | $(CROSS)$(CC) -dM -E -)
# use POSIX/C99 printf on windows
CFLAGS += -D__USE_MINGW_ANSI_STDIO=1