On Mon, Jan 18, 2021 at 08:15:10PM -0500, John Scott wrote: > 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.
It seems your proposal does not allow to set CC to clang ? Cheers, -- Bill. <[email protected]> Imagine a large red swirl here.

