aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2025-12-31 22:40:19 +0300
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2025-12-31 22:55:47 +0300
commit5ca42fe2f003860d09a1199c846a83e5ea5f8c3e (patch)
treea69fc16b4643e63b1009497ba3f85a7bf9693257
parentbcba0ef4486eb9baec3cd4d17250b91e1c8a7f79 (diff)
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.
-rw-r--r--freebsd/Makefile8
1 files 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 <bsd.port.pre.mk>