Pre defined #defines for different cross compilers ?

Dan Kegel dank@kegel.com
Tue Sep 30 18:09:00 GMT 2003


Anton Erasmus wrote:
> As far as I understand autoconf, configures for the platform one is
> compiling on. 

Right.  But that's ok; the idea is autoconf lets you adapt
to the platform.  Using autoconf, you can write a program
that is portable to zillions of targets.

 > Can one say configure on a cygwin host for a program
> that will run on a mips machine under linux ?

No, of course not.

> The only info regarding
> the target environment as far as I can see is within the cross compile
> tool environment.

That's right.  So what's the problem?  Maybe you misunderstand
how autoconf is used.  Running configure doesn't generate a portable
program; it's the combination of configure plus the source code that
is portable.
- Dan

-- 
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list