How to compile a port with GCC instead of clang

Roland Smith rsmith at xs4all.nl
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}
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20131208/d7586f30/attachment.sig>


More information about the freebsd-questions mailing list