From 4ce7676b1a30b39fc2877611cc5164852578f649 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 7 Apr 2014 15:26:31 -0600 Subject: [PATCH] disable LTO by default The -flto flag slows down linking dramatically without providing a noticeable improvement in speed or size. Rather than take the build-time hit every time we rebuild, let's only do it when it's explicitly requested. --- makefile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/makefile b/makefile index f25941197c..ca7beb7b21 100755 --- a/makefile +++ b/makefile @@ -1054,15 +1054,9 @@ ifeq ($(mode),stress-major) endif ifeq ($(mode),fast) optimization-cflags = $(cflags_fast) -DNDEBUG - ifeq ($(use-lto),) - use-lto = true - endif endif ifeq ($(mode),small) optimization-cflags = $(cflags_small) -DNDEBUG - ifeq ($(use-lto),) - use-lto = true - endif endif ifeq ($(use-lto),true)