From 5ca42fe2f003860d09a1199c846a83e5ea5f8c3e Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 31 Dec 2025 22:40:19 +0300 Subject: FreeBSD port: added LTO option instead of enabling WITH_LTO=yes always The latter is apparently frowned upon. This will hopefully get the v2.5.0 release into ports quicker. --- freebsd/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/freebsd/Makefile b/freebsd/Makefile index b182771..2ac8c8e 100644 --- a/freebsd/Makefile +++ b/freebsd/Makefile @@ -61,19 +61,23 @@ PLIST_SUB+= GTK="" \ PROGRAM_PREFIX=g .endif -OPTIONS_DEFINE= LEXILLA MALLOC_REPLACEMENT TECO_INTEGER_32 +OPTIONS_DEFINE= LEXILLA MALLOC_REPLACEMENT TECO_INTEGER_32 LTO OPTIONS_DEFAULT= LEXILLA MALLOC_REPLACEMENT OPTIONS_SUB= yes LEXILLA_DESC= Build with Lexilla lexer support (larger) MALLOC_REPLACEMENT_DESC= Replace system malloc() for memory limiting TECO_INTEGER_32_DESC= Use 32-bit TECO integers +LTO_DESC= Apply Link-Time Optimizations (significantly faster) LEXILLA_CONFIGURE_OFF= --without-lexilla MALLOC_REPLACEMENT_CONFIGURE_ON= --enable-malloc-replacement TECO_INTEGER_32_CONFIGURE_ON= --with-teco-integer=32 -WITH_LTO= yes +# Once we support an --enable-lto site-config-option, we should rather use that. +LTO_CFLAGS= -flto=thin +LTO_CXXFLAGS= -flto=thin +LTO_LDFLAGS= -flto=thin .include -- cgit v1.2.3