This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: Pre defined #defines for different cross compilers ?


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


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