summaryrefslogtreecommitdiffhomepage
path: root/sysinfo
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-10-31 15:01:43 -0400
committermidipix <writeonce@midipix.org>2015-10-31 15:01:43 -0400
commit9d0a309796778f61c9a3a284bbace09a563d5e9d (patch)
treebc4008214118028d4067e19ee99b57ab93b1f034 /sysinfo
parentea47fc41cf2e9b52fe572c0a3e757333b51a0b51 (diff)
downloaddalist-9d0a309796778f61c9a3a284bbace09a563d5e9d.tar.bz2
dalist-9d0a309796778f61c9a3a284bbace09a563d5e9d.tar.xz
build system: include host definitions prior to toolchain definitions
and fix CC accordingly.
Diffstat (limited to 'sysinfo')
-rw-r--r--sysinfo/host/native.mk1
-rw-r--r--sysinfo/toolchain/gcc.mk2
2 files changed, 1 insertions, 2 deletions
diff --git a/sysinfo/host/native.mk b/sysinfo/host/native.mk
index 465a01b..08b02b6 100644
--- a/sysinfo/host/native.mk
+++ b/sysinfo/host/native.mk
@@ -1,6 +1,5 @@
include $(PROJECT_DIR)/sysinfo/os/$(NATIVE_OS).mk
-CC = $(CROSS_COMPILE)$(NATIVE_CC)
OS = $(NATIVE_OS)
HOST_BITS = $(NATIVE_OS_BITS)
HOST_UNDERSCORE = $(NATIVE_OS_UNDERSCORE)
diff --git a/sysinfo/toolchain/gcc.mk b/sysinfo/toolchain/gcc.mk
index 441a2ca..933fb48 100644
--- a/sysinfo/toolchain/gcc.mk
+++ b/sysinfo/toolchain/gcc.mk
@@ -1,4 +1,4 @@
-CC = $(CROSS_COMPILE)gcc
+CC = $(CROSS_COMPILE)$(NATIVE_CC)
CPP = $(CROSS_COMPILE)cpp
CXX = $(CROSS_COMPILE)c++