From owner-freebsd-questions@FreeBSD.ORG Thu Mar 22 21:18:04 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 81E5E16A403 for ; Thu, 22 Mar 2007 21:18:04 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by mx1.freebsd.org (Postfix) with ESMTP id 6205513C4D0 for ; Thu, 22 Mar 2007 21:18:04 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from hymn07.u.washington.edu (hymn07.u.washington.edu [140.142.8.53]) by mxout5.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l2MLI3L0013396 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 22 Mar 2007 14:18:04 -0700 Received: from localhost (localhost [127.0.0.1]) by hymn07.u.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l2MLI3rr013109 for ; Thu, 22 Mar 2007 14:18:03 -0700 X-Auth-Received: from [192.55.52.4] by hymn07.u.washington.edu via HTTP; Thu, 22 Mar 2007 14:18:03 PDT Date: Thu, 22 Mar 2007 14:18:03 -0700 (PDT) From: youshi10@u.washington.edu To: freebsd-questions@freebsd.org In-Reply-To: <20070322201117.9677.qmail@web34406.mail.mud.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.3.22.140933 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='NO_REAL_NAME 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' 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 21:18:04 -0000 On Thu, 22 Mar 2007, White Hat wrote: > --- Chuck Swiger wrote: > >> On Mar 22, 2007, at 12:34 PM, White Hat wrote: >>>> Add: >>>> >>>> CC?= /usr/local/bin/gcc >>>> CXX?= /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=' >>> 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="), 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. Does the make.conf manpage need to be updated? It doesn't appear to reference either USE_GCC= or CC= or CXX= at all.. -Garrett