1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #3376 from gebart/pr/lto-warning

Makefile.cflags: Add warning for LTO
This commit is contained in:
Joakim Gebart 2015-07-13 17:07:55 +02:00
commit bbe6547263

View File

@ -43,6 +43,7 @@ endif
CXXUWFLAGS += -std=%
ifeq ($(LTO),yes)
$(info Building with Link-Time-Optimizations is currently an experimental feature. Expect broken binaries.)
LTOFLAGS = -flto -ffat-lto-objects
CFLAGS += ${LTOFLAGS}
LINKFLAGS += ${LTOFLAGS}