I understand the gcc version that buildworld uses is the system version (e.g.)> 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 Cheers, Richard
> > 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.95Just 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/
On Thu, Jul 01, 2004 at 06:21:39PM +1000, Richard Beyer wrote:> I understand the gcc version that buildworld uses is the system version > (e.g.) > > >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.95One rather good reason is that you can't compile the base system with a version of gcc that isn't the one in the base system :-). If you badly want a version of FreeBSD compiled with gcc 3.3, you can update to FreeBSD 5.x. Kris -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20040701/3277690e/attachment.bin
On Thu, Jul 01, 2004 at 06:21:39PM +1000, Richard Beyer wrote:> I understand the gcc version that buildworld uses is the system version > (e.g.) > > >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.95If you don't use the system compiler, you won't be able to buildworld. -- Jonathan Chen <jonc@chen.org.nz> ---------------------------------------------------------------------- Power corrupts, Absolute Power is pretty neat