git: 479829cc0f4e - main - Mk/bsd.lto.mk: also add -flto=thin to LDFLAGS
Piotr Kubaj
pkubaj at FreeBSD.org
Thu Sep 30 21:39:40 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=479829cc0f4e9c54c7b5941a2c0dd490cbfc54c3
commit 479829cc0f4e9c54c7b5941a2c0dd490cbfc54c3
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-09-30 21:33:59 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-09-30 21:33:59 +0000
Mk/bsd.lto.mk: also add -flto=thin to LDFLAGS
Reported by: jbeich
---
Mk/bsd.lto.mk | 7 ++++---
1 file 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 at 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
More information about the dev-commits-ports-all
mailing list