Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Nov 1998 23:25:34 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        imp@village.org (Warner Losh)
Cc:        current@FreeBSD.ORG
Subject:   Re: newer gcc?
Message-ID:  <199811152325.QAA03397@usr05.primenet.com>
In-Reply-To: <199811100540.WAA05121@harmony.village.org> from "Warner Losh" at Nov 9, 98 10:40:37 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> : That's a bit premature.  I'd be more interested if you could even build
> : the world from egcs installed in /usr/local.
> 
> As would I.  I'm trying to get a cross build environment working, and
> am finding that gcc is a hard nut to crack at its current revision
> level.

You will find that you can not use a C++ compiler from a port to
build in trees where DESTDIR is defined.

The reason for this is that the use of DESTDIR screws up CFLAGS and
CXXINCLUDES to use the DESTDIR relative (and therefore non-port)
include directories.

So if, for example, you have code that depends on exceptions and
RTTI working, you are SOL.  See:

	/usr/share/mk/bsd.prog.mk
	/usr/share/mk/bsd.lib.mk

for details.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811152325.QAA03397>