summaryrefslogtreecommitdiffstats
path: root/doc/PKGBUILD.5.asciidoc
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2021-03-01 05:08:18 +0100
committerAllan McRae <allan@archlinux.org>2021-03-03 05:35:45 +0100
commit4a0891f49d29458e1b93d95f8121f8096bb02727 (patch)
tree6da95703a8cd8b0121b5973d174de1fac7fc22e4 /doc/PKGBUILD.5.asciidoc
parent17f9911ffc79d60d1bebb4484fac82cb1ed78d2a (diff)
downloadpacman-4a0891f49d29458e1b93d95f8121f8096bb02727.tar.gz
pacman-4a0891f49d29458e1b93d95f8121f8096bb02727.tar.xz
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 <allan@archlinux.org>
Diffstat (limited to 'doc/PKGBUILD.5.asciidoc')
-rw-r--r--doc/PKGBUILD.5.asciidoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/PKGBUILD.5.asciidoc b/doc/PKGBUILD.5.asciidoc
index 1db0b6c4..af615040 100644
--- a/doc/PKGBUILD.5.asciidoc
+++ b/doc/PKGBUILD.5.asciidoc
@@ -325,6 +325,10 @@ underscore and the architecture name e.g., 'replaces_x86_64=()'.
When used in combination with the `strip' option, a separate package
containing the debug symbols is created.
+ *lto*;;
+ Enable building packages using link time optimization. Adds '-flto'
+ to both CFLAGS and CXXFLAGS.
+
Packaging Functions
-------------------