Skip to content

Commit

Permalink
Mk/bsd.lto.mk: also add -flto=thin to LDFLAGS
Browse files Browse the repository at this point in the history
Reported by: jbeich
  • Loading branch information
pkubaj committed Sep 30, 2021
1 parent 620968a commit 479829c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Mk/bsd.lto.mk
Expand Up @@ -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

0 comments on commit 479829c

Please sign in to comment.