Fix: Don't set CC, LD, CXX via ?=

CC, LD and CXX are builtin, and they also override ?=, so ?= is pointless.

This solution disallows specifying a compiler from the environment. There
should be some solution with $(origin CC), but this seems too clunky for now.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2019-07-01 15:48:28 +00:00
commit 6c2fa903c7
2 changed files with 7 additions and 4 deletions

View file

@ -201,9 +201,9 @@ ifeq ($(COMPILER_SUITE),gcc)
#GNU_LD_MINOR := $(word 2,$(GNU_LD_VERSION_NUMBERS))
#GNU_LD_REV := $(word 3,$(GNU_LD_VERSION_NUMBERS))
CC ?= $(GCC)
CXX ?= $(GXX)
LD ?= $(GXX)
CC = $(GCC)
CXX = $(GXX)
LD = $(GXX)
FINAL_CXXFLAGS += -std=c++$(CPP_STANDARD_VERSION)
FINAL_CFLAGS += -std=gnu$(C_STANDARD_VERSION)