aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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>