git: fb5f03a87cf4 - main - Mk/bsd.lto.mk: add global LTO support for ports

Jan Beich jbeich at FreeBSD.org
Thu Sep 30 18:50:39 UTC 2021


Piotr Kubaj <pkubaj at FreeBSD.org> writes:

> +.if !defined(LTO_UNSAFE)
> +# Overridable as a user may want to use -flto
> +LTO_CFLAGS?=	-flto=thin
> +CFLAGS+=	${LTO_CFLAGS}
> +CXXFLAGS+=	${LTO_CFLAGS}
> +.endif

Do both Clang and GCC enable LTO without -flto* in LDFLAGS ?

https://github.com/mesonbuild/meson/blob/0.59.1/mesonbuild/compilers/mixins/clang.py#L153-L158
https://github.com/mesonbuild/meson/blob/0.59.1/mesonbuild/compilers/compilers.py#L965-L966


More information about the dev-commits-ports-main mailing list