On Sat, 2018-03-10 at 15:35:43 +0100, jean-christophe manciot wrote: > > No, dpkg-buildpackage or debian/rules, just build the packages > > matching the host architecture, not for all architectures.
> In most cases, you're right. > But for instance, for binutils, the "--build=binary" option builds the > packages for all architectures: cf. the battached .buildinfo. No, those are "cross-compiler" packages, they are still arch amd64, but target some other architecture which is encoded in the package name. Whether this can be disabled and how, it's package specific, and you'd need to check the debian/rules files for those kind of packages. Certainly not a dpkg problem. > If you want to build for several architectures then you'd do something > > like this instead: > > > > $ dpkg-buildpackage --arch=amd64 --build=any > > $ dpkg-buildpackage --arch=arm64 --build=any > Thanks for the info: the --arch option is not listed in the official > sid dpkg-buildpackage > documentation > <https://manpages.debian.org/unstable/dpkg-dev/dpkg-buildpackage.1.en.html>. Sorry, that was meant to be --host-arch. Still it would not help with not building the amd64 cross-packages from binutils. Thanks, Guillem