Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2007 13:11:17 -0700 (PDT)
From:      White Hat <pigskin_referee@yahoo.com>
To:        FreeBSD Users Questions <freebsd-questions@freebsd.org>
Subject:   Re: Updating GCC
Message-ID:  <20070322201117.9677.qmail@web34406.mail.mud.yahoo.com>
In-Reply-To: <14EBC0DB-7232-4EC1-88F5-BE883002E425@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--- Chuck Swiger <cswiger@mac.com> 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.



 
____________________________________________________________________________________
Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070322201117.9677.qmail>