Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Dec 2013 12:47:06 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        Peter Harrison <four.harrisons@googlemail.com>
Cc:        questions@freebsd.org
Subject:   Re: How to compile a port with GCC instead of clang
Message-ID:  <20131208114706.GA56474@slackbox.erewhon.net>
In-Reply-To: <CAA3eX7ZaOAavQ4a-Xn76vPYH2tyaXqLiDbKa82eKF_wa=OOuBg@mail.gmail.com>
References:  <CAA3eX7aEgiO7THQBMp4tH7H1xAq4o2tgrfRJ=rgGhw36hOv2qA@mail.gmail.com> <CAA3eX7ZaOAavQ4a-Xn76vPYH2tyaXqLiDbKa82eKF_wa=OOuBg@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Sun, Dec 08, 2013 at 10:54:55AM +0000, Peter Harrison wrote:
> Hello list.
> 
> How can I compile www/chromium with GCC instead of clang?
> 
> If I compile it with clang I end up with a broken binary that won't render
> pages properly. If I compile it with gcc it works flawlessly.
> 
> But the knob to choose gcc has been removed in the recent updates. So now I
> have a broken chromium. How can I compile it with gcc instead?

Add the following to your /etc/make.conf:

.if ${.CURDIR:M*/www/chromium}
USE_GCC?=yes
.endif

See /usr/ports/Mk/bsd.gcc.mk for the possible values of USE_GCC.


Roland
-- 
R.F.Smith                                   http://rsmith.home.xs4all.nl/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iEYEARECAAYFAlKkXDoACgkQEnfvsMMhpyWWsgCcCv4kFLHq62t93jcGUxlrYnII
bCgAn0hs0Zwg6e/g4VjXCoKBEJzllohz
=yPrB
-----END PGP SIGNATURE-----
help

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