On Wed, Nov 16, 2016 at 01:59:50PM +0200, Martin-Éric Racine wrote: > I cannot help but wonder if setting CC for cross-build would be best > handled by the build tools themselves, rather than compensated for by > individual packages' debian/rules.
I'm inclined to agree, but you don't have a build system and that is precisely why you need to handle this here. If cups-pdf was using a Makefile, autotools or cmake, then dh_auto_* would just work (in most cases). But since you are invoking the compiler from debian/rules directly that's the place to set up CC. Guillem Jover has a draft[1] for a file /usr/share/dpkg/buildtools.mk or similar that would set up variables such as CC. Thus when that materializes, you can replace my patch with including such a makefile. Helmut [1] https://lists.debian.org/20150510013227.ga24...@gaara.hadrons.org