>>>>> "Hugh" == Hugh McMaster <hugh.mcmas...@outlook.com> writes:

    Hugh> Hi Sam, Apologies for the delay in replying. Somehow your
    Hugh> message landed in my spam folder.

    Hugh> 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

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

In the GNU model, I think that's the wrong thing to do.
I also note that every solution we've discussed has this defect.

Reply via email to