make: disable LTO as it discards the ISRs
This commit is contained in:
parent
ecc8911272
commit
8723a6e78d
2 changed files with 2 additions and 5 deletions
4
Makefile
4
Makefile
|
@ -20,8 +20,8 @@ CFLAGS += -Wredundant-decls -pedantic
|
|||
CFLAGS += -D_XOPEN_SOURCE
|
||||
|
||||
CFLAGS += -std=c99
|
||||
CFLAGS += -Os -flto
|
||||
LDFLAGS += -Os -flto
|
||||
CFLAGS += -Os
|
||||
LDFLAGS += -Os
|
||||
|
||||
TEST_LIBS += -lcmocka
|
||||
|
||||
|
|
|
@ -2,9 +2,6 @@ PREFIX ?= arm-none-eabi-
|
|||
|
||||
LDSCRIPT = support/stm32vl-discovery.ld
|
||||
|
||||
CFLAGS += -Os
|
||||
LDFLAGS += -Os
|
||||
|
||||
CFLAGS += -fno-common --function-sections -fdata-sections
|
||||
LDFLAGS += -static -nostartfiles
|
||||
LDFLAGS += -Wl,--gc-sections
|
||||
|
|
Loading…
Add table
Reference in a new issue