setting gcc46 as default compiler?

Volodymyr Kostyrko c.kworr at gmail.com
Fri Jun 8 07:44:45 UTC 2012


Jeff Hamann написал:
> I've built and installed the gcc46 compiler(s) - need gfortran - and I can't seem to find the correct documentation on how to update /etc/make.conf for including the gfortran46.
>
> This is what mine currently looks like:
>
> $ cat make.conf
> # added by use.perl 2012-06-07 03:03:21
> PERL_VERSION=5.10.1
> ..if !empty(.CURDIR:M/usr/ports/*)&&  exists(/usr/local/bin/gcc46)
> CC=gcc46
> CXX=g++46
> CPP=cpp46
> FC=gfortran46
> ..endif
>
> FFLAGS=-O2 -mtune=athlon64
> CC=gcc46
> CXX=g++46
> CPP=cpp46
> FC=gfortran46
>
> $
>
> Am I close? Help?

When I want some port to use gcc46 I use USE_GCC=4.6+. This takes care 
of depending ports on gcc port.

-- 
Sphinx of black quartz judge my vow.



More information about the freebsd-questions mailing list