Date: Fri, 26 Oct 2001 23:17:47 +0300 From: Ruslan Ermilov <ru@FreeBSD.ORG> To: Terry Lambert <tlambert2@mindspring.com> Cc: Peter Wemm <peter@wemm.org>, alpha@FreeBSD.ORG, developers@FreeBSD.ORG Subject: Re: cvs commit: src Makefile.inc1 Message-ID: <20011026231747.A33697@sunbay.com> In-Reply-To: <3BD98E91.4FFBE52E@mindspring.com>; from tlambert2@mindspring.com on Fri, Oct 26, 2001 at 09:25:53AM -0700 References: <20011025170119.509303808@overcee.netplex.com.au> <3BD90656.63D7EB89@mindspring.com> <20011026115148.B48208@sunbay.com> <3BD98E91.4FFBE52E@mindspring.com>
index | next in thread | previous in thread | raw e-mail
On Fri, Oct 26, 2001 at 09:25:53AM -0700, Terry Lambert wrote:
> Ruslan Ermilov wrote:
> >
> > On Thu, Oct 25, 2001 at 11:44:38PM -0700, Terry Lambert wrote:
> > > Peter Wemm wrote:
> > > > One thing that would be nice, and I have not had the patience to sit down
> > > > and figure it out yet, is find some way to specify and use an *external*
> > > > cross compiler and/or toolchain to do the cross build and exclude the
> > > > in-tree compiler and/or toolchain.
> > >
> > > Setting DESTDIR causes include and library path overrides
> > > that cause the system default paths to be used, instead of
> > > the correct paths for the cross compiler. See /usr/share/mk
> > > for DESTDIR defined variant behaviour, for details...
> > >
> > Setting DESTDIR is OK since revision 1.219.
>
> Please see the current version of bsd.lib.mk (1.99), which has:
>
> .if defined(DESTDIR) && !defined(BOOTSTRAPPING)
> CFLAGS+= -I${DESTDIR}/usr/include
> CXXINCLUDES+= -I${DESTDIR}/usr/include/g++
> .endif
>
> This precludes use of other than the system toolchain; in
> particular, you will get the wrong version of typeinfo and
> other headers when compiling C++ code, which are compiler
> specific (and even GCC version specific).
>
> I think there are issues with the standard headers for C,
> as well, should the toolchain derived version be different
> than the one for the tools you are using (e.g. quad vs.
> long long, etc.).
>
> The problem is that this jams the system include paths in
> front of the paths intended to override them.
>
> As an exercise, try compiling what you can of FreeBSD
> using the TenDRA or the DEC (Compaq) Alpha compilers.
>
Excuse me, but I thought Peter was talking about pre-compiled
toolchain in EXTERNAL_CROSS_TOOLS=/usr/local/ia64/bin.
Cheers,
--
Ruslan Ermilov Oracle Developer/DBA,
ru@sunbay.com Sunbay Software AG,
ru@FreeBSD.org FreeBSD committer,
+380.652.512.251 Simferopol, Ukraine
http://www.FreeBSD.org The Power To Serve
http://www.oracle.com Enabling The Information Age
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011026231747.A33697>
