This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: building native tools in a cross-compile environment


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]