Skip to content

Commit 946d3fd

Browse files
committed
fix iar with make
1 parent 38a5826 commit 946d3fd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/device/cdc_msc_freertos/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ CFLAGS_GCC += -Wno-error=redundant-decls
4343
CFLAGS_GCC += -Wno-error=cast-qual
4444

4545
# FreeRTOS (lto + Os) linker issue
46-
LDFLAGS += -Wl,--undefined=vTaskSwitchContext
46+
LDFLAGS_GCC += -Wl,--undefined=vTaskSwitchContext
4747

4848
include ../../rules.mk

examples/device/hid_composite_freertos/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ CFLAGS_GCC += -Wno-error=redundant-decls
4242
CFLAGS_GCC += -Wno-error=cast-qual
4343

4444
# FreeRTOS (lto + Os) linker issue
45-
LDFLAGS += -Wl,--undefined=vTaskSwitchContext
45+
LDFLAGS_GCC += -Wl,--undefined=vTaskSwitchContext
4646

4747
include ../../rules.mk

tools/make/toolchain/arm_gcc_rules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ifneq ($(CFLAGS_SKIP),)
2121
CFLAGS := $(filter-out $(CFLAGS_SKIP),$(CFLAGS))
2222
endif
2323

24-
LDFLAGS += $(CFLAGS)
24+
LDFLAGS += $(CFLAGS) $(LDFLAGS_GCC)
2525

2626
ifdef LD_FILE
2727
LDFLAGS += -Wl,-T,$(TOP)/$(LD_FILE)

tools/make/toolchain/arm_iar.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ SIZE = size
88
CFLAGS += -e --debug --silent
99

1010
# silent mode
11-
ASFLAGS += -S
11+
ASFLAGS += -S $(addprefix -I,$(INC))

0 commit comments

Comments
 (0)