summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2021-11-28 14:33:52 +0100
committerLevente Polyak <anthraxx@archlinux.org>2021-11-28 14:33:52 +0100
commit16b7a0e7e8ef795621172cb08887a2f86f0b0222 (patch)
treec7ab0614c8f7b68c14db6cbe6d79c2767fc211df
parentcc6cf65ef9dae217a7476bc0ef3333157f5dea6e (diff)
downloaddevtools-16b7a0e7e8ef795621172cb08887a2f86f0b0222.tar.xz
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
-rw-r--r--makepkg-x86_64.conf2
1 files changed, 1 insertions, 1 deletions
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)