1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Makefile.cflags: Make LTO a warning instead of info

(fixes problems with info-boards-supported etc)
This commit is contained in:
Joakim Nohlgård 2016-02-08 16:07:22 +01:00 committed by Kaspar Schleiser
parent 5f313898bf
commit 0ff7652bd6

View File

@ -42,10 +42,9 @@ endif
# Unwanted flags for c++
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}
ifeq ($(LTO),1)
$(warning Building with Link-Time-Optimizations is currently an experimental feature. Expect broken binaries.)
LTOFLAGS = -flto
LINKFLAGS += ${LTOFLAGS}
endif