mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
make: add -ffunction-sections -fdata-sections to LINKFLAGS if LTO=1
This commit is contained in:
parent
726c461cb5
commit
1547d2f075
@ -54,7 +54,7 @@ endif
|
||||
ifeq ($(LTO),1)
|
||||
$(warning Building with Link-Time-Optimizations is currently an experimental feature. Expect broken binaries.)
|
||||
LTOFLAGS = -flto
|
||||
LINKFLAGS += $(LTOFLAGS)
|
||||
LINKFLAGS += $(LTOFLAGS) -ffunction-sections -fdata-sections
|
||||
endif
|
||||
|
||||
# Forbid common symbols to prevent accidental aliasing.
|
||||
|
Loading…
Reference in New Issue
Block a user