mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
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:
parent
d3f05b12b2
commit
6c2fa903c7
2 changed files with 7 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue