all: Use += rather than = everywhere for CFLAGS/LDFLAGS/LIBS.
This avoids a surprise where an = can cancel out an earlier +=. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
committed by
Damien George
parent
8e912a501a
commit
17f2783e4a
@@ -139,7 +139,7 @@ CFLAGS += -fsingle-precision-constant
|
||||
endif
|
||||
endif
|
||||
|
||||
LDFLAGS = -nostdlib -L $(LD_DIR) $(addprefix -T,$(LD_FILES)) -Map=$(@:.elf=.map) --cref
|
||||
LDFLAGS += -nostdlib -L $(LD_DIR) $(addprefix -T,$(LD_FILES)) -Map=$(@:.elf=.map) --cref
|
||||
LDFLAGS += --defsym=_estack_reserve=8
|
||||
LIBS += "$(shell $(CC) $(CFLAGS) -print-libgcc-file-name)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user