Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Feb 2005 14:24:55 -0500
From:      Charles Swiger <cswiger@mac.com>
To:        Jim Pazarena <fquest@ccstores.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: cvsup gcc
Message-ID:  <88d5547f604870af34b28bb71ab5c390@mac.com>
In-Reply-To: <42236D3E.1000509@ccstores.com>
References:  <42236D3E.1000509@ccstores.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 28, 2005, at 2:13 PM, Jim Pazarena wrote:
> on 5.3, gcc 3.4.2 sees to have been updated, but doing a make
> install doesn't give you the new version 3.4.4 (gcc --version).
>
> what would the procedure be to get the newer gcc set as the default?

cd /usr/ports/lang/gcc34
make install
echo "CC=/usr/local/bin/gcc" >> /etc/make.conf
echo "C++=/usr/local/bin/g++" >> /etc/make.conf

Note that you might need to unset the above when building the kernel or 
world.

-- 
-Chuck



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