autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cross compilation


From: Ralf Wildenhues
Subject: Re: cross compilation
Date: Tue, 11 Mar 2008 22:35:12 +0100
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Hallo Antonio,

* address@hidden wrote on Mon, Mar 10, 2008 at 06:41:43PM CET:
> 
>  I have a program that when cross compiled need a program that must be built 
> on
> the build platform (assuming cross compiling when build != host and host ==
> target).
>  Like I've read on the autotool book, on the autoconf manual and on the 
> autoconf
> forum I've tried to use the CC_FOR_BUILD substituition variable and the
> config.guess and config.sub invoking
> AC_CANONICAL_BUILD/AC_CANONICAL_HOST/AC_CANONICAL_TARGET. After this macros,
> running ./configure using --build=i686-pc-linux-gnu
> --host=powerpc-7450-linux-gnu, CC_FOR_BUILD is empty. But this is not my only
> problem because I need to use AR, RANLIB and LD from the Makefiles and I can't
> find AR_FOR_BUILD and co.

Yep.  There is no code in Autoconf that sets these *_FOR_BUILD
variables.  If you like you can go look how GCC does it, and copy
that.

If somebody implements something general along these lines that
is useful for several packages, it would be nice to have in Autoconf!

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]