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 --- scripts/libmakepkg/buildenv/meson.build | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/libmakepkg/buildenv/meson.build') diff --git a/scripts/libmakepkg/buildenv/meson.build b/scripts/libmakepkg/buildenv/meson.build index 34d4ba7b..b72d91c0 100644 --- a/scripts/libmakepkg/buildenv/meson.build +++ b/scripts/libmakepkg/buildenv/meson.build @@ -4,6 +4,7 @@ sources = [ 'buildflags.sh.in', 'compiler.sh.in', 'debugflags.sh.in', + 'lto.sh.in', 'makeflags.sh.in', ] -- cgit v1.2.3-70-g09d2