summaryrefslogtreecommitdiff
path: root/archivers/zstd/Makefile
diff options
context:
space:
mode:
authorDaniel Engberg <diizzy@FreeBSD.org>2022-08-20 09:26:39 +0200
committerDaniel Engberg <diizzy@FreeBSD.org>2022-08-20 09:32:11 +0200
commit5a2f556ccbd7685fb8149f1e63a6f692d057aa4c (patch)
tree6aa8977b535a103f94fc8a457ffa062fcdada1fc /archivers/zstd/Makefile
parentirc/irssi: Backport buildfix for Capsicum in -CURRENT (diff)
archivers/zstd: Add LTO option
Add LTO option, this increases performance between 5-15% on my test systems (arm64 and amd64) with optimized cflags (-03) enabled. LTO is also enabled by default on Alpine Linux and OpenMandriva PR: 265605 Approved by: sunpoet (maintainer timeout, 2+ weeks)
Diffstat (limited to 'archivers/zstd/Makefile')
-rw-r--r--archivers/zstd/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/archivers/zstd/Makefile b/archivers/zstd/Makefile
index ec45710de745..49255dbd1187 100644
--- a/archivers/zstd/Makefile
+++ b/archivers/zstd/Makefile
@@ -23,9 +23,10 @@ PLIST_SUB= PORTVERSION=${PORTVERSION}
SHEBANG_FILES= *.py
-OPTIONS_DEFINE= LZ4 OPTIMIZED_CFLAGS TEST
+OPTIONS_DEFINE= LTO LZ4 OPTIMIZED_CFLAGS TEST
OPTIONS_DEFAULT=LZ4
+LTO_MESON_TRUE= b_lto
LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4
LZ4_MESON_ENABLED= lz4
LZ4_USES= localbase:ldflags