Hi Sam,

Apologies for the delay in replying. Somehow your message landed in my spam 
folder.

On Friday, 5 January 2018 1:44 PM, Sam Hartman wrote:
> My plan is to use the following:
> CC=${CC-cc}
> tripple=`$CC -print-multiarch 2>/dev/null|| ( $CC -dumpmachine | sed 
> 's/-pc//' )`
> if [ x$tripple = x ]; then
>     echo >&2 Failed to find installation architecture
>     exit 2
> fi

This seems to work well for development on the host architecture and when 
setting CC="gcc -mXX". It may not work so well for cross-compiling, where some 
packages set CC_FOR_BUILD, BUILD_CC or some other random variable.

That said, I'd hope that cross-compilers make use of pkg-config instead of 
krb5-config.mit.
Plus, cross-compiling with krb5-config.mit was impractical, due to the 
hard-coded
libdir path.

I was going to suggest calling `dpkg-architecture -qDEB_HOST_MULTIARCH`, as the
cups team did recently to solve a similar problem in cups-config [1]. But that 
would 
add a dependency on dpkg-dev, which may not be desirable. (And, again, there is 
no
support for cross-compiling).

> Expect an upload shortly; let me know how it works for you.
I see you're taking a trip through the NEW queue. So I'll need to wait for the 
package 
to land in Sid before I can see how you've integrated the code.

Thanks for your work on this. (And to Ben and Russ as well.)

Hugh

[1] 
https://anonscm.debian.org/cgit/printing/cups.git/commit/?id=3814f6fdb9f4edcdd841a38fcea18c223f155dea

Reply via email to