[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A way to specify a host CC during cross compile?
From: |
Dave Hart |
Subject: |
Re: A way to specify a host CC during cross compile? |
Date: |
Tue, 5 Apr 2011 00:54:09 +0000 |
On Mon, Apr 4, 2011 at 22:15 PM, Martin Hicks <address@hidden> 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