How can I switch compiler from clang to gcc46?

Eitan Adler lists at eitanadler.com
Sat Mar 16 14:05:12 UTC 2013


On 16 March 2013 09:01, Beeblebrox <zaphod at berentweb.com> wrote:
> I need to compile a source not in the ports tree. The source needs to use the
> gcc compiler (I have lang gcc (46) installed). Sourec make file complains it
> cannot find gcc46.
>
> To test, I placed in my environment:
> setenv CC gcc46
> setenv CXX g++46
> setenv CPP cpp46
>
> When I do "cc -v" I still get clang output and not gcc46. What am I doing
> wrong here?

cc is a program.  If you want to use the environment variables try
using "$CC -v".  If you want help to make your makefile to use $CC
instead of 'cc' you will need to provide the Makefile as an attachment
so we can see what it is doing.

-- 
Eitan Adler


More information about the freebsd-ports mailing list