summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Mk/bsd.lto.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/Mk/bsd.lto.mk b/Mk/bsd.lto.mk
index c2a079ea28bb..f3b708a804a1 100644
--- a/Mk/bsd.lto.mk
+++ b/Mk/bsd.lto.mk
@@ -4,7 +4,8 @@ LTO_Include_MAINTAINER= pkubaj@FreeBSD.org
.if !defined(LTO_UNSAFE)
# Overridable as a user may want to use -flto
-LTO_CFLAGS?= -flto=thin
-CFLAGS+= ${LTO_CFLAGS}
-CXXFLAGS+= ${LTO_CFLAGS}
+LTO_FLAGS?= -flto=thin
+CFLAGS+= ${LTO_FLAGS}
+CXXFLAGS+= ${LTO_FLAGS}
+LDFLAGS+= ${LTO_FLAGS}
.endif