Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Sep 2021 20:50:34 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Piotr Kubaj <pkubaj@FreeBSD.org>
Cc:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   Re: git: fb5f03a87cf4 - main - Mk/bsd.lto.mk: add global LTO support for ports
Message-ID:  <r1d5-aoed-wny@FreeBSD.org>
In-Reply-To: <202109301834.18UIYKrL013410__33905.1567528927$1633026877$gmane$org@gitrepo.freebsd.org> (Piotr Kubaj's message of "Thu, 30 Sep 2021 18:34:20 GMT")
References:  <202109301834.18UIYKrL013410__33905.1567528927$1633026877$gmane$org@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Piotr Kubaj <pkubaj@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?r1d5-aoed-wny>