Buildworld GCC version

Cordula's Web cpghost at cordula.ws
Thu Jul 1 01:57:58 PDT 2004


> > tsmel> gcc -v
> > Using builtin specs.
> > gcc version 2.95.4 20020320 [FreeBSD]
> 
> If I've installed gcc3.3 how can I change the default compiler so that it 
> uses the updated version, or is there some reason I should leave it on 
> gcc2.95

Just set the CC environment variable to gcc33 (or whatever) before
invoking configure, make, ...

$ env CC=gcc33 ./configure
$ env CC=gcc33 make

> Cheers,
> Richard

-- 
Cordula's Web. http://www.cordula.ws/



More information about the freebsd-stable mailing list