native: correcting linker LTO flags for OSX

- corrects and enhances changes introduced in #5742
This commit is contained in:
smlng 2016-09-01 09:59:10 +02:00
parent 9cb73dd63f
commit 291c1a54eb

View File

@ -78,7 +78,12 @@ endif
# clean up unused functions
export CFLAGS += -ffunction-sections -fdata-sections
ifeq ($(shell uname -s),Darwin)
export LINKFLAGS += -Wl,-dead_strip
else
export LINKFLAGS += -Wl,--gc-sections
endif
export LINKFLAGS += -ffunction-sections
# set the tap interface for term/valgrind
ifneq (,$(filter netdev2_tap,$(USEMODULE)))