diff options
author | mpvader <mvader@victronenergy.com> | 2018-02-11 22:32:26 +0100 |
---|---|---|
committer | mpvader <mvader@victronenergy.com> | 2018-02-11 22:32:26 +0100 |
commit | 21b5fc75be0a5a791622a57c2b827237a9654c39 (patch) | |
tree | 7348251e7bc3e7bc6d8b855a5181daa011236de2 /Makefile | |
parent | 114c31d86e60eccac0cd8fba4369d077bad6b31b (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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |