Hi! On Sat, 2024-06-01 at 10:13:04 +0200, Gioele Barabucci wrote: > Package: dpkg-dev > Version: 1.22.6
> during native builds, dpkg-buildflags returns an empty CFLAGS_FOR_BUILD. The > same happens for CPPFLAGS_FOR_BUILD, LDFLAGS_FOR_BUILD and other *_FOR_BUILD > variables. > > Given that CFLAGS_FOR_BUILD is supposed to be used instead of CFLAGS (not > _in addition to_ it), dpkg-buildflags should set CFLAGS_FOR_BUILD to CFLAGS, > so that the same set of, say, hardening flags will be used. In general given that those artifacts built using *_FOR_BUILD should never end up in a .deb, the set of build flags do not seem really important, as long as their omission would not cause build failures. This was covered in <https://lists.debian.org/debian-dpkg/2023/11/msg00032.html>. The important part is that we cannot unconditionally set *_FOR_BUILD flags from the host ones or that would break with host specific ones. I guess we could special case the native build one and then copying them over, although this could incur build failures at this point in time. :/ I guess this might be in the context of blhc? Thanks, Guillem

