boards/native/Makefile.include: Add -Wl,--gc-sections to linker options

pr/spi.typo
Joakim Nohlgård 8 years ago committed by Kaspar Schleiser
parent efedaa1a43
commit 5fcb09f6b9

@ -45,7 +45,6 @@ export GPROF ?= gprof
# basic cflags:
export CFLAGS += -Wall -Wextra -pedantic
export CFLAGS += -ffunction-sections -fdata-sections
ifeq ($(shell uname -m),x86_64)
export CFLAGS += -m32
endif
@ -77,6 +76,10 @@ else
export LINKFLAGS += -ldl
endif
# clean up unused functions
export CFLAGS += -ffunction-sections -fdata-sections
export LINKFLAGS += -Wl,--gc-sections
# set the tap interface for term/valgrind
ifneq (,$(filter netdev2_tap,$(USEMODULE)))
export PORT ?= tap0

Loading…
Cancel
Save