On Thu, Sep 14, 2017 at 12:26:04AM +0300, Jussi Pakkanen wrote: > When compiling with Meson, CC and CXX must point to the native > compilers, not to cross compilers. If the crossgen tool uses CC that > means that debuild needs to first set it to the cross compiler, run > crossgen and then set it to the native compiler. Is this a natural way > of doing it for debuild or does it cause complications?
The Debian convention is that they point to the host architecture compilers (if set), because that's what most build systems do. So if meson differs here, then dh_auto_configure needs to clear these variables for meson (but only for cross compilation). I'll implement that aspect for debhelper after this bug is fixed. > This script should probably do the same thing as that one. With a bit > of refactoring it could even import that function since it ships in > the same (private) directory as the code itself. Please do. :) Helmut