On Wed, 02 Jun 2010 18:23:19 +0300, Alexander Best <alexbes...@uni-muenster.de> 
wrote:
it seems for some reason gcc44 gets chosen at some point as compiler
instead of the base gcc. i DO have CC, CXX and CPP defined in my
/etc/make.conf so that gcc44 gets used for ports and other stuff.
HOWEVER /stc/src.conf also contains those three variables and they to
the base version of gcc. of course commenting out those variables in
/etc/make.conf fixes the problem, but if i'm not mistaken 'buildworld'
should use /etc/src.conf at all times and thus should be aware that i
want it to use base gcc.

buildworld uses both, src.conf and make.conf, and whatever is in
make.conf pretty much overrides everything else. You can use something
like this to set compiler only for ports:

.if !empty(.CURDIR:M/usr/ports/*)
CC=gcc44
.endif

--
Andrius
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to