1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00
freebsd-ports/Mk/bsd.lto.mk
Piotr Kubaj 57ff929040 Mk/bsd.lto.mk: add short description of LTO
Requested by mat@ and mandree@.
2021-10-07 23:59:37 +00:00

14 lines
346 B
Makefile

# LTO Support
# This file enforces Link Time Optimization for ports.
# In order to use it, add USE_LTO=yes to your /etc/make.conf.
LTO_Include_MAINTAINER= pkubaj@FreeBSD.org
.if !defined(LTO_UNSAFE)
# Overridable as a user may want to use -flto
LTO_FLAGS?= -flto=thin
CFLAGS+= ${LTO_FLAGS}
CXXFLAGS+= ${LTO_FLAGS}
LDFLAGS+= ${LTO_FLAGS}
.endif