Browse Source

Makefile.cflags: Make LTO a warning instead of info

(fixes problems with info-boards-supported etc)
pr/spi.typo
Joakim Nohlgård 7 years ago committed by Kaspar Schleiser
parent
commit
0ff7652bd6
  1. 7
      Makefile.cflags

7
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

Loading…
Cancel
Save