From 3c87d89df3c2d51ee2453ce97b7c257d392288db Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Mon, 20 Jan 2020 11:38:22 -0600 Subject: [PATCH] Enable LTO by default Most compilers support it, and it gives a good perf increase OOTB. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 90b4f270..21c19a68 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ MANPATH?=$(PREFIX)/share/man/man1/ PKG_CONFIG_PATH?=$(LIBDIR)/pkgconfig DEBUGGER=gdb -CFLAGS:=$(CFLAGS) -std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fPIC -O2 -fvisibility=hidden \ +CFLAGS:=$(CFLAGS) -std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fPIC -O2 -fvisibility=hidden -flto \ -DJANET_BUILD=$(JANET_BUILD) LDFLAGS=-rdynamic