1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-28 07:51:19 +01:00

Merge pull request #5794 from smlng/pr/fix_osx_5742

correcting linker LTO flags on OSX
This commit is contained in:
Joakim Nohlgård 2016-09-16 17:37:52 +02:00 committed by GitHub
commit ee486fd908

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)))