Hi Tollef,
On Wed, Feb 03, 2016 at 06:10:50AM +0100, Tollef Fog Heen wrote:
Those scripts can wrap pkg-config, and pkg-config already knows how to
provide user-defined variables, so this sounds like a problem that's
solveable.
What sounds obvious isn't. The important bit here is which architecture
you are building for. pkg-config has an API for this: You invoke it as
$DEB_HOST_GNU_TYPE-pkg-config. Those foo-config scripts do not have this
API (with rare exceptions). Thus they do not know the host architecture
and have no way of correctly invoking pkg-config.
Yes, there were proposals checking $DEB_HOST_GNU_TYPE inside foo-config
scripts, but this will just break those scripts for those users that are
the reason for keeping them.
So this doesn't work, but I cannot tell you what works, sorry.