summaryrefslogtreecommitdiffhomepage
path: root/sysinfo/toolchain
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-10-31 15:26:52 -0400
committermidipix <writeonce@midipix.org>2015-10-31 15:26:52 -0400
commit929bc2cbe6bfc6334e6ee3e2cd395d456f564c02 (patch)
tree07bd8b509c5b04b79b8acf13ff691e78f9925d1b /sysinfo/toolchain
parent2318d682ccf46b2a95cbc842ad477b99201e1b34 (diff)
downloadntapi-929bc2cbe6bfc6334e6ee3e2cd395d456f564c02.tar.bz2
ntapi-929bc2cbe6bfc6334e6ee3e2cd395d456f564c02.tar.xz
build system: gcc: add missing cross-compilation conditional.
Diffstat (limited to 'sysinfo/toolchain')
-rw-r--r--sysinfo/toolchain/gcc.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysinfo/toolchain/gcc.mk b/sysinfo/toolchain/gcc.mk
index e0ad0d2..52a2545 100644
--- a/sysinfo/toolchain/gcc.mk
+++ b/sysinfo/toolchain/gcc.mk
@@ -1,5 +1,9 @@
ifeq ($(USER_CC)x,x)
- CC = $(CROSS_COMPILE)$(NATIVE_CC)
+ ifeq ($(CROSS_COMPILE)x,x)
+ CC = $(CROSS_COMPILE)$(NATIVE_CC)
+ else
+ CC = $(CROSS_COMPILE)gcc
+ endif
else
CC = $(USER_CC)
endif