From owner-freebsd-alpha Fri Oct 26 13:18:16 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 2C8CA37B401; Fri, 26 Oct 2001 13:18:07 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id f9QKHmG43657; Fri, 26 Oct 2001 23:17:48 +0300 (EEST) (envelope-from ru) Date: Fri, 26 Oct 2001 23:17:47 +0300 From: Ruslan Ermilov To: Terry Lambert Cc: Peter Wemm , alpha@FreeBSD.ORG, developers@FreeBSD.ORG Subject: Re: cvs commit: src Makefile.inc1 Message-ID: <20011026231747.A33697@sunbay.com> References: <20011025170119.509303808@overcee.netplex.com.au> <3BD90656.63D7EB89@mindspring.com> <20011026115148.B48208@sunbay.com> <3BD98E91.4FFBE52E@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3BD98E91.4FFBE52E@mindspring.com>; from tlambert2@mindspring.com on Fri, Oct 26, 2001 at 09:25:53AM -0700 Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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