How to compile a port with GCC instead of clang

Roland Smith rsmith at
Sun Dec 8 11:47:15 UTC 2013

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}

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

[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <>

More information about the freebsd-questions mailing list