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.
This commit is contained in:
Joel Dice 2014-04-07 15:26:31 -06:00
parent e86fce28ec
commit 4ce7676b1a

View File

@ -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)