From owner-freebsd-questions Sat Oct 9 19:57:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail4.lig.bellsouth.net (mail4.lig.bellsouth.net [205.152.0.32]) by hub.freebsd.org (Postfix) with ESMTP id BFD5E14BD2 for ; Sat, 9 Oct 1999 19:57:36 -0700 (PDT) (envelope-from gljohns@bellsouth.net) Received: from gforce.johnson.home (host-209-214-146-153.msy.bellsouth.net [209.214.146.153]) by mail4.lig.bellsouth.net (3.3.4alt/0.75.2) with ESMTP id WAA23232; Sat, 9 Oct 1999 22:57:12 -0400 (EDT) Received: (from glenn@localhost) by gforce.johnson.home (8.9.3/8.9.3) id VAA01032; Sat, 9 Oct 1999 21:57:09 -0500 (CDT) (envelope-from glenn) From: Glenn Johnson Date: Sat, 9 Oct 1999 21:57:09 -0500 To: Dan Nelson Cc: TrouBle , "freebsd-questions@FreeBSD.ORG" Subject: Re: removing GCC Message-ID: <19991009215708.B881@gforce.johnson.home> References: <37FEDCF7.59450877@hackfurby.com> <19991009114617.A14201@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <19991009114617.A14201@dan.emsphone.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Oct 09, 1999 at 11:46:17AM -0500, Dan Nelson wrote: > In the last episode (Oct 09), TrouBle said: > > > Okay guys heres one for ya..... > > > > 3.3-RELEASE comes stock with gcc 2.7.2.3 > > > > yet in the ports tree there is gcc 2.9.5 ( egcs based ) and i know > > 4.0-RELEASE is also EGCS based > > > > how do i replace the gcc 2.7.2.3 with the newer 2.9.5 and not have > > it clobbered by a build world, and use it as my default compiler ?? > > Install ports/devel/egcs, and stick /usr/local/bin in your path before > /usr/bin. Then anything running "gcc" will find gcc 2.9.5, and kernel > builds and buildworlds will still use the 2.7.2 that they expect. > The egcs port does not install gcc as 'gcc' but 'gcc295'. So putting /usr/local/bin in the path before /usr/bin will not help. Put "CC=gcc295" in your /etc/make.conf file to make it the default compiler for FreeBSD ports. For other things you compile that don't use the FreeBSD make system, you could try 'make CC=gcc295'. In some cases you may have to set it explicitly in the Makefile for the software you are compiling. Under no circumstances however should you blow away the stock gcc 2.7.2.3 compiler as you will need it. -- Glenn Johnson gljohns@bellsouth.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message