git: 5a2f556ccbd7 - main - archivers/zstd: Add LTO option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 20 Aug 2022 07:32:27 UTC
The branch main has been updated by diizzy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5a2f556ccbd7685fb8149f1e63a6f692d057aa4c
commit 5a2f556ccbd7685fb8149f1e63a6f692d057aa4c
Author: Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2022-08-20 07:26:39 +0000
Commit: Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2022-08-20 07:32:11 +0000
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)
---
archivers/zstd/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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