From owner-freebsd-questions@FreeBSD.ORG Thu Mar 22 19:06:11 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3926B16A40F for ; Thu, 22 Mar 2007 19:06:11 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id ED47613C4CC for ; Thu, 22 Mar 2007 19:06:00 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan@localhost [127.0.0.1]) by dan.emsphone.com (8.14.0/8.13.8) with ESMTP id l2MJ5gGs092867 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 22 Mar 2007 14:05:43 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.0/8.14.0/Submit) id l2MJ5gLJ092866; Thu, 22 Mar 2007 14:05:42 -0500 (CDT) (envelope-from dan) Date: Thu, 22 Mar 2007 14:05:42 -0500 From: Dan Nelson To: White Hat Message-ID: <20070322190542.GB92547@dan.emsphone.com> References: <291828.60547.qm@web34401.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <291828.60547.qm@web34401.mail.mud.yahoo.com> X-OS: FreeBSD 6.2-STABLE User-Agent: Mutt/1.5.14 (2007-02-12) Cc: FreeBSD Users Questions Subject: Re: Updating GCC X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Mar 2007 19:06:11 -0000 In the last episode (Mar 22), White Hat said: > FreeBSD-6.2 > > The installed version is gcc-3.4.6, while the ports have version > 4.3.0 available. If I install the newer version will it replace the > older version? If not and I don't think it will, how do I force the > use of the newer version of Gcc when making a port? I tried Googling > for this but without success. The FreeBSD handbook doesn't seem to > have any available information on this either. Port versions of gcc install into /usr/local/bin with a version-number suffix. So the gcc43 port will install gcc43, g++43, etc. If you want a port to build with a particular version of gcc, add a USE_GCC=4.3 line to the port Makefile. This is mentioned in the "USE_*" section of http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-depend.html -- Dan Nelson dnelson@allantgroup.com