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:
commit
ee486fd908
@ -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)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user