Bug#1133272: dpkg-buildflags: please include LFS_CFLAGS and LFS_LDFLAGS
Martin-Éric Racine <[email protected]> Sat, 11 Apr 2026 15:02:59 +0300
| Newsgroups | gmane.linux.debian.devel.dpkg.bugs |
|---|---|
| Message-ID | <CAPZXPQfuX+bfF+t=4ouOU5Oskda4+D7FR8Ye20OVBoTEnimLhA__27829.893485044$1775909133$gmane$org@mail.gmail.com> |
la 11.4.2026 klo 14.03 Guillem Jover ([email protected]) kirjoitti: > On Sat, 2026-04-11 at 13:46:06 +0300, Martin-Éric Racine wrote: > > Package: dpkg-dev > > Version: 1.23.7 > > Severity: important > > X-Debbugs-Cc: [email protected] > > > In my packages, I currently have to manually include the following in > > debian/rules: > > > export DEB_CFLAGS_MAINT_APPEND +=$(shell getconf LFS_CFLAGS) $(HARDENING_CFLAGS) > > export DEB_LDFLAGS_MAINT_APPEND +=$(shell getconf LFS_LDFLAGS) $(HARDENING_LDFLAGS) > > > > It would be nice if dpkg-buildflags provided these for us. > In any case, dpkg-buildflags already supports setting LFS flags with: > > export DEB_BUILD_MAINT_OPTIONS = abi=+lfs > > which should support cross-building correctly. Noted. > I was going to close this report as invalid, but I guess I can instead > document that the getconf interface should not be used in the > dpkg-buildflags man page (although I'm not sure it would have helped > here, as I assume the man page was not checked?). I simply typed 'dpkg-buildflags' onto the command line and did not see LFS_CFLAGS or LFS_LDFLAGS among the results, so I filed this bug. Martin-Éric