On Monday, January 18, 2021 9:56:58 AM EST you wrote: > Could you check whether this is compatible with your build process? Setting the CC variable works, and although the cross built pari-gp binary is not identical to the native built one in my run, they differ only in the build ID. So overriding the compiler works!
However, for most packages CC gets set to the appropriate cross-compiler by dh_auto_configure. Since the package doesn't use it, you'll need the tweaked solution: include /usr/share/dpkg/architecture.mk # or call dpkg-architecture manually ifeq ($(origin CC),default) CC := `which $(DEB_HOST_GNU_TYPE)-gcc` else CC := /usr/bin/cc endif That will replace this new block: ifeq (,$(CC)) CC := /usr/bin/cc else CC := `which $(CC)` endif Note that the conditional is always false, since GNU Make sets $(CC) to 'cc' automatically. This dilemma of deciding whether CC is user-specified or not is what the $(origin) syntax is required for. With that final change, Pari will be cross-buildable out-of-the-box and you should start seeing green at crossqa: http://crossqa.debian.net/src/pari
signature.asc
Description: This is a digitally signed message part.