Date: Sat, 16 Mar 2013 21:15:11 +0700 From: Erich Dollansky <erichsfreebsdlist@alogt.com> To: Eitan Adler <lists@eitanadler.com> Cc: freebsd-ports@freebsd.org, Beeblebrox <zaphod@berentweb.com> Subject: Re: How can I switch compiler from clang to gcc46? Message-ID: <20130316211511.1d22eb6b@X220.ovitrap.com> In-Reply-To: <CAF6rxg=k4Bx57Df1YA497iOXUNBS7jjL=k-aBOqOtEbCvsPS8Q@mail.gmail.com> References: <1363438889978-5796040.post@n5.nabble.com> <CAF6rxg=k4Bx57Df1YA497iOXUNBS7jjL=k-aBOqOtEbCvsPS8Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Sat, 16 Mar 2013 10:04:41 -0400 Eitan Adler <lists@eitanadler.com> wrote: > On 16 March 2013 09:01, Beeblebrox <zaphod@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. > why not set this as an alias? Of course, with the full path. Erich
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130316211511.1d22eb6b>