upgrading gcc-2.95 to gcc-3.3

Dan Nelson dnelson at allantgroup.com
Sun Aug 1 19:57:38 PDT 2004


In the last episode (Aug 02), SP Network Solutions said:
> Yes, im aware that it installed in it own folder..
> /usr/local/bin/gcc33
> 
> I've already installed it in my system and tried this;
> /usr/local/bin/gcc33 -v
> 
> it show this:
> gcc version 3.3.4 20040505 (prerelease) [FreeBSD]
> 
> Is this the right one?

Yes.  You can also install the gcc34 port to get a snapshot of what will
become gcc-3.4.2.
 
> and regards to the CC=gcc33 and CXX=g++33
> Can you please give me the command to do this
> If possible, the basic steps to get it done...

If using a Bourne-type shell:

export CC=gcc33
export CXX=g++33

If using a csh-type shell (csh and tcsh are the only ones I know of):

setenv CC gcc33
setenv CXX g++33
 
> my only intention is to get the machine runs with gcc33 and not the
> gcc2.95

With those variables set, anything you compile will be built with gcc33. 
Make sure you unset them before building the kernel or base system.  They
require the system's original gcc.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list