From 21b5fc75be0a5a791622a57c2b827237a9654c39 Mon Sep 17 00:00:00 2001 From: mpvader Date: Sun, 11 Feb 2018 22:32:26 +0100 Subject: 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3-54-g00ecf