Updating GCC
Chuck Swiger
cswiger at mac.com
Thu Mar 22 19:06:04 UTC 2007
On Mar 22, 2007, at 11:55 AM, White Hat wrote:
> The installed version is gcc-3.4.6, while the ports
> have version 4.3.0 available. If I install the newer
> version will it replace the older version?
Nope.
> If not and I don't think it will, how do I force the use of the
> newer version of Gcc when making a port?
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...
--
-Chuck
More information about the freebsd-questions
mailing list