From owner-freebsd-questions Sun Aug 29 22:16:58 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ares.maths.adelaide.edu.au (ares.maths.adelaide.edu.au [129.127.246.5]) by hub.freebsd.org (Postfix) with ESMTP id 75D7615165 for ; Sun, 29 Aug 1999 22:16:51 -0700 (PDT) (envelope-from glewis@ares.maths.adelaide.edu.au) Received: (from glewis@localhost) by ares.maths.adelaide.edu.au (8.9.3/8.9.3) id OAA78660; Mon, 30 Aug 1999 14:46:26 +0930 (CST) (envelope-from glewis) From: Greg Lewis Message-Id: <199908300516.OAA78660@ares.maths.adelaide.edu.au> Subject: Re: GNU gcc 2.95.1 In-Reply-To: <3.0.5.32.19990827012425.02748c70@mail> from "charon@freethought.org" at "Aug 27, 1999 01:24:25 am" To: charon@freethought.org Date: Mon, 30 Aug 1999 14:46:26 +0930 (CST) Cc: Greg Lewis , freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL56 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >The main issue is that the 3.x kernel will not compile correctly with > >egcs/gcc-2.95. It will compile, just not correctly :). The relevant > >kernel code has been fixed in the 4.0-CURRENT branch but I don't know > >of any plans to backport the changes to -STABLE. > > > >I've used egcs for C++ development for quite some time and am very pleased > >with it overall. > > Just a naive question: if I install egcs, is there anything I have to do to > prevent 'make' from using it (i.e. I'd like only 'g++' to use it)? Thanks, Make will use whatever comes first in your path, unless you specifically override it with some environment variables. Some pertinent variables are CC (the C compiler) and CXX (the C++ compiler). You could set these to the value you want in your .login or .cshrc or whatever the correct place is for your shell :). I actually use egcs for everything except for the system binaries and the kernel (i.e., when I'm doing make world). -- Greg Lewis glewis@trc.adelaide.edu.au Computing Officer +61 8 8303 5083 Teletraffic Research Centre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message