Control: reassign -1 lintian On Thu, 17 Dec 2020 15:31:57 +0100 Matthias Klose <d...@debian.org> wrote: > Package: debhelper > Tags: patch > > See also #977596 filed for lintian. > > dh_strip already strips the lto sections when stripping static archives, > however > it doesn't check that the archive has text sections containing the machine > code. > > see > https://github.com/rpm-software-management/rpmlint/blob/master/rpmlint/checks/BinariesCheck.py > (_check_no_text_in_archive function) for an implementation. > > You can test this with e.g. xxhash, building with > > export DEB_CFLAGS_MAINT_APPEND = -flto=auto > > and > > export DEB_CFLAGS_MAINT_APPEND = -flto=auto -ffat-lto-objects > > > I think it's better to fail the build, and not having an unusable .a in the > package.
This sounds more like a lintian check than something that should be in dh_strip. ~Niels