I think the right fix here is to strip the output of dpkg-buildflags from the config script output. We've definitely had problems before where leaking dpkg-buildflags into other build tools made it effectively impossible for dependent packages to work around toolchain issues.
I think the right fix here is to strip the output of dpkg-buildflags from the config script output. We've definitely had problems before where leaking dpkg-buildflags into other build tools made it effectively impossible for dependent packages to work around toolchain issues.