howto crosscompile a source
Ralf Corsepius
rc040203@freenet.de
Fri Sep 22 05:50:00 GMT 2006
On Thu, 2006-09-21 at 19:46 +0100, Dave Korn wrote:
> On 21 September 2006 08:41, eWobbuh wrote:
>
> > Hello there,
> >
> > i m very new to crosscompiling (and linux ;) ).. i have a working toolchain
> > and uclibc for the mips32. I have compiled a simple c program (hello world)
> > and is working fine. But now i want compile something bigger (openobex and
> > ussp-push).. but how to begin? if just run ./configure and the make && make
> > install, it just compiles, and thats not what i want..
>
> Well, with most autotoolized software, if you want to *cross* compile it to
> a different target, you specify "--target=<target-triplet>"
Sorry, no - Common misunderstanding.
You want --host=<target-triplet>
--build=... system you are building on
--host=... system, the binaries to be built are supposed to run on.
--target=... system, the binaries to be built on "build", running on
"host" are supposed to generate output for.
> as an argument to
> configure, where <target-triplet> matches your compiler's target, and the
> configure script should find and use the cross-compiler automagically.
Ralf
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list