From 4a0891f49d29458e1b93d95f8121f8096bb02727 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 1 Mar 2021 14:08:18 +1000 Subject: Add link time optimization support to makepkg Add the 'lto' option to enable building with link time optimization by adding '-flto' to both CFLAGS and CXXFLAGS. The 'lto' option can be specificed both in the PKGBUILD or by setting the default in makepkg.conf. Signed-off-by: Allan McRae --- doc/makepkg.conf.5.asciidoc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/makepkg.conf.5.asciidoc') diff --git a/doc/makepkg.conf.5.asciidoc b/doc/makepkg.conf.5.asciidoc index 04cc5ea9..2c7a54db 100644 --- a/doc/makepkg.conf.5.asciidoc +++ b/doc/makepkg.conf.5.asciidoc @@ -189,6 +189,10 @@ Options DEBUG_CXXFLAGS to their counterpart buildflags. Creates a separate package containing the debug symbols when used with `strip'. + *lto*;; + Enable building packages using link time optimization. Adds '-flto' + to both CFLAGS and CXXFLAGS. + **INTEGRITY_CHECK=(**check1 ...**)**:: File integrity checks to use. Multiple checks may be specified; this affects both generation and checking. The current valid options are: -- cgit v1.2.3-24-g4f1b