Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Nov 1999 20:25:45 +0100
From:      Marcel Moolenaar <marcel@scc.nl>
To:        arch@freebsd.org
Subject:   Re: Cross compilation goals.
Message-ID:  <383AEA39.853F353B@scc.nl>
References:  <38344691.BF54DAD@scc.nl>, <199911231911.MAA02934@usr06.primenet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert wrote:
> 
> > > Another issue is that the GCC/EGCS code "front ending" is not
> > > very well integrated; you end up with huge amounts of installed
> > > headers, even if you are cross-compiling the same OS on another
> > > platform.
> >
> > I'm not sure I understand your point. Do you mean that installing the
> > headers in the object-tree should be avoided if they are the same as the
> > ones installed on the host?
> 
> No.  Although that is a good point:  The headers should be included
> from their location in the source tree, not from the host, and not
> from the object tree.

The problem with this is that some headers need to be generated and that
the layout of the source tree is incompatible with layout of
/usr/include.

> > Or that different architectures can share the same set of headers?
> 
> Different machine architectures running the same OS.

We can't use the include files of the machine we are running on. They
may be (totally) different from those of the machine we are trying to
build (see below)

> > The second case is not possible, so I assume you don't actually ment
> > that :-)
> 
> The second case is perfectly possible, and reasonable in fact.

Include files of the same OS and version, but for different
architectures are in general different for the machine dependent parts
and sometimes even for the machine independent parts. How do you think
we can share those headers?

-- 
Marcel Moolenaar                        mailto:marcel@scc.nl
SCC Internetworking & Databases           http://www.scc.nl/
The FreeBSD project                mailto:marcel@FreeBSD.org




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?383AEA39.853F353B>