This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: building native tools in a cross-compile environment
- From: Tom Tromey <tromey at redhat dot com>
- To: Harlan Stenn <Harlan dot Stenn at pfcs dot com>
- Cc: automake at gnu dot org
- Date: 09 Jul 2002 18:16:27 -0600
- Subject: Re: building native tools in a cross-compile environment
- References: <47179.1024454201@dog.pfcs.com>
- Reply-to: tromey at redhat dot com
>>>>> "Harlan" == Harlan Stenn <Harlan.Stenn@pfcs.com> writes:
Harlan> So how do I tell automake that for some PROGRAMS it should use
Harlan> host-cc instead of build-cc?
You can set the _LINK variable to use the appropriate compiler.
I think we'd need some autoconf support to make this really work. For
instance you'd probably want to be able to run tests on both
compilers, generate two different config.h's, etc.
Once that's done I envision us doing something like:
bin_PROGRAMS = maude
maude_CC = $(CC_FOR_TARGET)
Tom