Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Mar 2013 16:06:40 +0000
From:      Chris Rees <crees@FreeBSD.org>
To:        Beeblebrox <zaphod@berentweb.com>
Cc:        FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: How can I switch compiler from clang to gcc46?
Message-ID:  <CADLo838JLxGp2z8ah5C_38f76EQYuL7995svtfes86YrXSM1ug@mail.gmail.com>
In-Reply-To: <1363447339256-5796071.post@n5.nabble.com>
References:  <1363438889978-5796040.post@n5.nabble.com> <CAF6rxg=k4Bx57Df1YA497iOXUNBS7jjL=k-aBOqOtEbCvsPS8Q@mail.gmail.com> <1363443540656-5796061.post@n5.nabble.com> <1363443707095-5796064.post@n5.nabble.com> <1363444658690-5796066.post@n5.nabble.com> <1363446444086-5796069.post@n5.nabble.com> <1363447339256-5796071.post@n5.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 16 March 2013 15:22, Beeblebrox <zaphod@berentweb.com> wrote:
> I just remembered: The last time I tried to compile this, I was on 9-STABLE
> as I recall and I did not have any of the specific problems  I am running
> into now. Everything went much more smoothly back then.

The way I've always used gcc to compile ports is to use the USE_GCC=any flag.

Don't put that unconditionally in make.conf however, or you will break
everything because of circular dependencies; either use something
like:

.if ${.CURDIR:M*/category/port}
USE_GCC=any
.endif

or use it on the command line.

Don't forget to make clean first.

Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo838JLxGp2z8ah5C_38f76EQYuL7995svtfes86YrXSM1ug>