From 722550c5bcfef16e9e181f2a975fbbc2ef9e16b1 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 6 Aug 2016 16:18:23 +0300 Subject: [PATCH] Enabled link time optimization when building in release, improving speed by about 6% --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ebd2d3f6..0559bedc 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,8 @@ endif ifeq ($(CONF),debug) CFLAGS += -g else ifeq ($(CONF), release) -CFLAGS += -O3 +CFLAGS += -O3 -flto +LDFLAGS += -flto else $(error Invalid value for CONF: $(CONF). Use "debug" or "release") endif