Browse Source

make: optionally add gcc lto flags

This commit enables building using link time optimization when
specifying "LTO=yes" in the application's Makefile.
dev/timer
Kaspar Schleiser 8 years ago
parent
commit
9cf054fe96
  1. 6
      Makefile.cflags

6
Makefile.cflags

@ -41,3 +41,9 @@ endif
# Unwanted flags for c++
CXXUWFLAGS += -std=%
ifeq ($(LTO),yes)
LTOFLAGS = -flto -ffat-lto-objects
CFLAGS += ${LTOFLAGS}
LINKFLAGS += ${LTOFLAGS}
endif

Loading…
Cancel
Save