mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-06 01:57:40 +00:00
57ff929040
Requested by mat@ and mandree@.
14 lines
346 B
Makefile
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
|