fix iar with make

This commit is contained in:
hathach 2023-06-24 21:17:40 +07:00
parent 38a582634e
commit 946d3fdd4f
No known key found for this signature in database
GPG Key ID: F5D50C6D51D17CBA
4 changed files with 4 additions and 4 deletions

View File

@ -43,6 +43,6 @@ CFLAGS_GCC += -Wno-error=redundant-decls
CFLAGS_GCC += -Wno-error=cast-qual
# FreeRTOS (lto + Os) linker issue
LDFLAGS += -Wl,--undefined=vTaskSwitchContext
LDFLAGS_GCC += -Wl,--undefined=vTaskSwitchContext
include ../../rules.mk

View File

@ -42,6 +42,6 @@ CFLAGS_GCC += -Wno-error=redundant-decls
CFLAGS_GCC += -Wno-error=cast-qual
# FreeRTOS (lto + Os) linker issue
LDFLAGS += -Wl,--undefined=vTaskSwitchContext
LDFLAGS_GCC += -Wl,--undefined=vTaskSwitchContext
include ../../rules.mk

View File

@ -21,7 +21,7 @@ ifneq ($(CFLAGS_SKIP),)
CFLAGS := $(filter-out $(CFLAGS_SKIP),$(CFLAGS))
endif
LDFLAGS += $(CFLAGS)
LDFLAGS += $(CFLAGS) $(LDFLAGS_GCC)
ifdef LD_FILE
LDFLAGS += -Wl,-T,$(TOP)/$(LD_FILE)

View File

@ -8,4 +8,4 @@ SIZE = size
CFLAGS += -e --debug --silent
# silent mode
ASFLAGS += -S
ASFLAGS += -S $(addprefix -I,$(INC))