[Mono-dev] Cross compiling options explained

Jose Cornado jose.cornado at efekctive.com
Fri Dec 15 12:32:11 EST 2006

If I *recall* correctly the tool chain needs some tweaking too. There is a
book about embbeding Linux that I have found very useful for this
(undertanding the cross-compiling and getting it to work)

On 12/15/06, Ben Timby <btimby at gmail.com> wrote:
> I have not used these specific options of mono, but this is standard
> cross-compile stuff. I have answered your queries inline below.
> Barry Bennett wrote:
> > Can anyone provide more details on what the cross compiling options
> > for building really mean?
> >
> > The --help option for configure provides the following terse
> > responses relating to cross compiler options:
> >    --build=BUILD     configure for building on BUILD [guessed]
> >    --host=HOST       cross-compile to build programs to run on HOST
> >    --target=TARGET   configure for building compilers for TARGET [HOST]
> >
> > What are the allowable settings for BUILD, HOST, and TARGET?
> BUILD,HOST,TARGET = target, this is an identifier that describes the
> system. Below is a link that came up on google that might help with the
> definition.
> http://www.airs.com/ian/configure/configure_5.html
> BUILD is the system type performing the compilation.
> HOST is the system which will run the resulting binary.
> TARGET is the system for which the compilation tools produce code for.
> Generally same as host.
> > What do the bracketed words at the ends of each line mean?
> I assume the brackets indicate the defaults for each option.
> --build is guessed by default.
> --host uses the value of build.
> --target uses the value of host.
> Thus if you specify nothing, all three are guessed. The target will be
> your local system, and not what is considered a cross-compiled binary
> for a different system than the host.
> > Are there any examples of using these options that might help to
> > clarify their meaning?
> For example, if I am on an x86 Linux system, and I want to produce a
> binary which will run on a MIPS Linux system, I would do something like
> the following:
> --build=i386-linux-gnu --host=mips-elf
> Run the config.guess shell script on your system and it will dump your
> current target.
> > I have searched for documentation on these options without
> > success.  If they are documented somewhere then can someone please
> > point me to the link.
> A bunch of stuff came up in google, when I searched on the following
> keyword sets...
> cross compile target
> target build host
> gnu configure cross
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

José Cornado


home: http://www.efekctive.com
blog:   http://www.efekctive.com/blogging

Everything has been said before, but since nobody listens we have to keep
going back and beginning all over again.

Andre Gide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061215/9d4149a0/attachment.html 

More information about the Mono-devel-list mailing list