From owner-freebsd-current Thu Feb 7 1: 1:39 2002 Delivered-To: freebsd-current@freebsd.org Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id 2588F37B404; Thu, 7 Feb 2002 01:01:33 -0800 (PST) Received: from pool0079.cvx22-bradley.dialup.earthlink.net ([209.179.198.79] helo=mindspring.com) by hawk.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 16YkPp-0005fX-00; Thu, 07 Feb 2002 01:00:26 -0800 Message-ID: <3C624223.4AE24952@mindspring.com> Date: Thu, 07 Feb 2002 01:00:19 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Max Khon Cc: Joe Kelsey , obrien@freebsd.org, current@freebsd.org Subject: Re: gcc3.x issues References: <20020206160611.B181@dragon.nuxi.com> <200202070053.g170rjQ19592@aldan.algebra.com> <20020206170904.C181@dragon.nuxi.com> <15457.55061.55399.596297@zircon.zircon.seattle.wa.us> <20020206172554.A1999@dragon.nuxi.com> <15457.56475.172650.789685@zircon.zircon.seattle.wa.us> <20020207131144.A87654@iclub.nsu.ru> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Max Khon wrote: > please calm down. seems that you have never installed gcc from ports. > > gcc 2.95 from ports is installed as gcc295/g++295 > and correctly gets its bits from /usr/local/lib/gcc-lib/xxx, > gcc 3.0x from ports is named gcc30/g++30 and so on. > There is no PATH issue. Switching between compilers is as easy as > setting correct CC/CXX environment/Makefile variables. And hacking the Makefile a lot to specify command line arguments in the compiler program definition itself, so that the /usr/include/g++ files that came with the old compiler are not used for "make release" and other types of make targets where DESTDIR is fairly mandatory. See /usr/src/share/mk/bsd.prog.mk, ~line 14: .if defined(DESTDIR) && !defined(BOOTSTRAPPING) CFLAGS+= -I${DESTDIR}/usr/include CXXINCLUDES+= -I${DESTDIR}/usr/include/g++ .endif See also /usr/src/share/mk/bsd.lib.mk, ~line 40. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message