make: stm32f0: optimise for size

tags/0.1.0
S.J.R. van Schaik 7 years ago
parent c38413dc90
commit 1a2341e012
  1. 3
      scripts/Makefile.stm32f0

@ -2,6 +2,9 @@ PREFIX ?= arm-none-eabi
LDSCRIPT = support/stm32f0-discovery.ld
CFLAGS += -Os
LDFLAGS += -Os
CFLAGS += -fno-common --function-sections -fdata-sections
LDFLAGS += -static -nostartfiles
LDFLAGS += -Wl,--gc-sections

Loading…
Cancel
Save