From 16b7a0e7e8ef795621172cb08887a2f86f0b0222 Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Sun, 28 Nov 2021 14:33:52 +0100 Subject: makepkg.conf: enable LTO option by default Enable link time optimization (LTO) of packages by default by adding the -flto flag. This provides smaller, faster executables/DSOs, and improves GCC diagnostics. This commit implements RFC 0004 https://gitlab.archlinux.org/archlinux/rfcs/-/blob/master/rfcs/0004-lto-by-default.rst --- makepkg-x86_64.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makepkg-x86_64.conf b/makepkg-x86_64.conf index 3aa7470..9d1b2f2 100644 --- a/makepkg-x86_64.conf +++ b/makepkg-x86_64.conf @@ -93,7 +93,7 @@ BUILDENV=(!distcc color !ccache check !sign) #-- debug: Add debugging flags as specified in DEBUG_* variables #-- lto: Add compile flags for building with link time optimization # -OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto) +OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto) #-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2 INTEGRITY_CHECK=(sha256) -- cgit v1.2.3-70-g09d2