From owner-freebsd-stable@FreeBSD.ORG Fri Sep 26 09:02:34 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 513BE16A4F5 for ; Fri, 26 Sep 2003 09:02:34 -0700 (PDT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 988D643FE1 for ; Fri, 26 Sep 2003 09:02:33 -0700 (PDT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 863F972DA8; Fri, 26 Sep 2003 09:02:33 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 838C772DA3; Fri, 26 Sep 2003 09:02:33 -0700 (PDT) Date: Fri, 26 Sep 2003 09:02:33 -0700 (PDT) From: Doug White To: pzhang@hsph.harvard.edu In-Reply-To: <20030926142330.18488.qmail@web12008.mail.yahoo.com> Message-ID: <20030926090102.X21673@carver.gumbysoft.com> References: <20030926142330.18488.qmail@web12008.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-stable@freebsd.org Subject: Re: about gcc X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2003 16:02:34 -0000 On Fri, 26 Sep 2003, Zhang, Peng wrote: > Hi folks, > > I am running freebsd-stable. Now I have two version > gcc installed. One is gcc295 as /usr/bin/gcc, and the > other is gcc32 as /usr/local/bin/gcc32. I just wonder > know whether I can choose any of them as default one > which can be detected by configure script, because > different softwares require different versions of gcc. > Thanks! Well I wouldn't try to build -stable with 3.2, but if you need to override it on a per-package basis and it uses autoconf, this sort of thing works: CC=gcc32 ./configure .... You can also change the CC variable in makefiles. If its written extra correctly then you can do make CC=gcc32 target.. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org