On Wed, Oct 02, 2002 at 09:00:00AM -0700, Burton Samograd wrote:
> > But you don't need a cross compiler at all for gnumach, if you have gcc for
> > any i386 target.
> > 
> 
> So, just to make sure I've got this right, I can build all of gnumach and hurd
> under my linux system (gentoo using gcc 3.2) and then install to my hurd
> partition without any problems?

I was not talking about the Hurd.

> I was under the assumption that all the cross
> compiler talk was due to different binary object formats, but after a bit of
> thought I came to the realization that gnumach/hurd simply uses elf files so
> there shouldn't be any difference as long as the build files are setup right.
> Am I wrong thinking this?

A definitive yesno.  As far as it comes to GNU Mach, it is a statically
linked ELF object started by GRUB.  The build requires some functions to
come from libc.a (strcpy, and such stuff).  But those are not system-specific
(only processor specific).  Thus you can build it on any GNU system with the
same CPU.

The Hurd is quite different (as well as any other application).  We
definitely do use the same object format.  We use the same toolchain.  So
all the ld, as, gcc, etc, are directly usable.  Still, we use different
headers, libraries, and link programs slightly differently.  Look into the
make-cross script to figure out how to set up a light cross compiler (it's
really only a specs file for gcc and a wrapper script).

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    [EMAIL PROTECTED]
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
[EMAIL PROTECTED]
http://www.marcus-brinkmann.de/


_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd

Reply via email to