Mattia Rizzolo wrote on 16/07/2018: > On Sat, Jul 14, 2018 at 07:56:08PM +0200, Paride Legovini wrote: >> One last question. Do we actually need these lines: >> >> include /usr/share/dpkg/architecture.mk >> ifeq ($(origin CC),default) >> CC := $(DEB_HOST_GNU_TYPE)-gcc >> endif >> >> in d/rules? >> Are they still relevant with Multi-Arch? > > They are very relevant with Multi-Arch, the point is that nowadays > debhelper takes care of them, so they are *usually* not needed anymore. > > I recommend you just try to remove the lines and cross build the > package, but I expect you can safely remove them.
Thanks Mattia, it does indeed cross-compile fine without them. They are now gone. > Note that these days cross building is extremely easy with both sbuild > and pbuilder, you just need to pass --host (for sbuild) or --host-arch > (for pbuilder), and they took care of everything (ISTR sbuild needs > another flag to install a foreign package, but that will be easy to find > out if you use sbuild…). I had to call sbuild with --add-depends=libc6-dev:<hostarch>, I guess this is what you were referring to. I pushed my changes, I think the package is ready to be uploaded. Paride