On Mon, Apr 4, 2011 at 22:15 PM, Martin Hicks <[email protected]> wrote:
> Is there a way to specify a different compiler for compile-time helper
> programs that are used during the build of a package?

I think the short answer is no.  I have some source files in a package
which are built by running a C program, which would be a use case for
$HOSTCC-type functionality.  I use a cross-compiling AM_CONDITIONAL to
disable the rules for updating those generated sources, and I
distribute them.  The result is changes to the sources of the
generated sources must be built in a non-cross-compile environment,
then the up-to-date generated sources can be transported (such as via
make dist, or committing to SCM) to the cross-build environment.

Cheers,
Dave Hart

Reply via email to