summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormpvader <mvader@victronenergy.com>2018-02-11 22:32:26 +0100
committermpvader <mvader@victronenergy.com>2018-02-11 22:32:26 +0100
commit21b5fc75be0a5a791622a57c2b827237a9654c39 (patch)
tree7348251e7bc3e7bc6d8b855a5181daa011236de2
parent114c31d86e60eccac0cd8fba4369d077bad6b31b (diff)
Makefile: assign CC conditionally
Only assign CC if its not yet defined. The Yocto SDK sets CC as an env variable, including --sysroot and various other parameters. This change fixes the Makefile for using with Yocto SDK.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e061f6a..1d73fe9 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ Q_OBJS = util.o llmnr-query.o
Q_LIBS =
Q_MAN = $(Q_P).1
-CC = $(CROSS_COMPILE)gcc
+CC ?= $(CROSS_COMPILE)gcc
INSTALL = install
GZIP = gzip -9 -c