From owner-freebsd-questions@FreeBSD.ORG Fri Mar 23 13:29:55 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 269A816A401 for ; Fri, 23 Mar 2007 13:29:55 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id E7C3B13C503 for ; Fri, 23 Mar 2007 13:29:54 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from gumby.homeunix.com (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id AF1DE51941 for ; Fri, 23 Mar 2007 09:29:53 -0400 (EDT) Date: Fri, 23 Mar 2007 13:29:51 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20070323132951.7347f039@gumby.homeunix.com> In-Reply-To: References: <20070322201117.9677.qmail@web34406.mail.mud.yahoo.com> X-Mailer: Claws Mail 2.8.1 (GTK+ 2.10.11; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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: Fri, 23 Mar 2007 13:29:55 -0000 On Thu, 22 Mar 2007 14:18:03 -0700 (PDT) youshi10@u.washington.edu wrote: > On Thu, 22 Mar 2007, White Hat wrote: >=20 > > --- Chuck Swiger wrote: > > > >> On Mar 22, 2007, at 12:34 PM, White Hat wrote: > >>>> Add: > >>>> > >>>> CC?=3D /usr/local/bin/gcc > >>>> CXX?=3D /usr/local/bin/g++ > >>>> > >>>> ...to /etc/make.conf. You might also find > >> looking > >>>> at /usr/ports/Mk/ > >>>> bsd.gcc.mk to be informative... > >>> > >>> Thanks! One other question; why the '?' mark? I > > was > >>> Googling for information on gcc, and it listed > >> 'cxx=3D' > >>> sans a question mark in it. > >> > >> It means "set CC to this value if it's not already > >> set to something". > >> > >> Some ports already know they need a newer version of > >> gcc (using > >> "USE_GCC=3D"), and the "make world" infrastructure to > >> rebuild the > >> kernel/userland need to use the system-provided > >> compiler, so using > >> the question mark lets things which know better use > >> the exact > >> compiler they want. > > > > Thanks! I could not find that information anywhere, > > although I am sure it does exist. >=20 > Does the make.conf manpage need to be updated? It doesn't appear to > reference either USE_GCC=3D or CC=3D or CXX=3D at all.. -Garrett >=20 =46rom the porters' Handbook=20 "Note: It is always incorrect to set any USE_* in /etc/make.conf."