Friday 29 April 2022

Re: I disabled lto, but it comes back in via -config --libs

Hi Andreas,

On Fri, Apr 29, 2022 at 10:50:21AM -0300, Andreas Hasenack wrote:
> I disabled lto in a build according to the instructions from [1]:

> export DEB_BUILD_MAINT_OPTIONS=optimize=-lto

> But I saw that it was still present in some steps of the build.
> Notably when krb5/gssapi was used:

[...]

> That sounds bad. It means only portions of the build will have lto
> disabled, while others will flip it back on. How to sort this out?
> Looks like the krb5 package needs some fixing, but I'm unsure how.

I think your main question has been addressed. But I want to ask, why is it a
problem to have part of this code with LTO enabled? Generally we disable
LTO only when it is causing build failures. Was that the case here?

--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer https://www.debian.org/
slangasek@ubuntu.com vorlon@debian.org