From 0ff7652bd6d6975a1db847f1122125343b77082f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Mon, 8 Feb 2016 16:07:22 +0100 Subject: [PATCH] Makefile.cflags: Make LTO a warning instead of info (fixes problems with info-boards-supported etc) --- Makefile.cflags | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile.cflags b/Makefile.cflags index 4e079d0cc..bef46ca72 100644 --- a/Makefile.cflags +++ b/Makefile.cflags @@ -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