mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
native: correcting linker LTO flags for OSX
- corrects and enhances changes introduced in #5742
This commit is contained in:
parent
9cb73dd63f
commit
291c1a54eb
@ -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