From 36fbed6dcdd851d599728892f5fe056c0278d33d Mon Sep 17 00:00:00 2001 From: Frank Hunleth Date: Sun, 13 Aug 2017 20:44:01 -0400 Subject: [PATCH] make always sets CC, so the code to set it never ran --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 74a6c9f..cba8386 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Variables to override # -# CC C compiler +# CC C compiler. MUST be set if crosscompiling # CROSSCOMPILE crosscompiler prefix, if any # CFLAGS compiler flags for compiling all C files # LDFLAGS linker flags for linking all binaries @@ -26,7 +26,6 @@ DEFAULT_TARGETS ?= priv priv/udhcpc_wrapper LDFLAGS += CFLAGS ?= -O2 -Wall -Wextra -Wno-unused-parameter CFLAGS += -std=c99 -CC ?= $(CROSSCOMPILE)-gcc # If not cross-compiling, then run sudo by default ifeq ($(origin CROSSCOMPILE), undefined)