From owner-freebsd-ports@FreeBSD.ORG Tue Sep 4 17:52:04 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 17757106564A for ; Tue, 4 Sep 2012 17:52:04 +0000 (UTC) (envelope-from rea@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.6.71]) by mx1.freebsd.org (Postfix) with ESMTP id DB0858FC1C for ; Tue, 4 Sep 2012 17:52:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codelabs.ru; s=two; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=SePHQ6yh0jMR30hp5tyIfbFA9OJC/5BGxnvBs/4Fp0Q=; b=QdoxNrhyQV7+Cuk1LIgjlV+7VX/oQUVaQo2kAIkUIodzdZnJxIkzltR/jRzzI5vWsPWinYIbmCjTlQtIQ7lKPBkDA1U9hkFHyOBlcT9o9vDYmnnqta7sjL1JahzznZKQ9dQmk68xoAnbL7Dv2XrPSmP4iNZAVBetCSWJSsKpbFaodRB4vlOUBof8wLK6DZBHLv5HcKva8ct72Z6P0AOSXlOwjljBISqrpSetd1oYTOADpRq3cN9H0bXuCSBcR0NJ/XYtQD3rcYdspA2OyhxA9IM4bKRxR+A/TKM5RmpMaFvnHVk9fwBujBnl8F/3rFdLfBUEXcotWggv0xO6tnKKeg==; Received: from gprs-internet-client-10.233.sonicduo.com (ppp91-77-216-65.pppoe.mtu-net.ru [91.77.216.65]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) id 1T8xI8-000I4z-CE; Tue, 04 Sep 2012 21:52:00 +0400 Date: Tue, 4 Sep 2012 21:52:10 +0400 From: Eygene Ryabinkin To: AN Message-ID: <20120904175210.GI716@gprs-internet-client-10.233.sonicduo.com> References: <20120628120042.C95C910656B5@hub.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9jHkwA2TBA/ec6v+" Content-Disposition: inline In-Reply-To: Sender: rea@codelabs.ru Cc: freebsd-ports@freebsd.org Subject: Re: need help building port with clang X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2012 17:52:04 -0000 --9jHkwA2TBA/ec6v+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Tue, Sep 04, 2012 at 01:45:51AM -0400, AN wrote: > I use the base compiler for world and most ports, I do not want to > change at this time. So, my question is how can I tell > Firefox-nightly to use clang? Is there an equivalent to > USE_GCC=3D4.8+ for clang that I can put in the makefile? I want to > use clang to compile this specific port, and let the base compiler > build the rest. Add the following lines to your /etc/make.conf {{{ =2Eif ${.CURDIR:M/usr/ports/www/firefox-nightly} CC=3Dclang CXX=3Dclang++ CPP=3Dclang-cpp =2Eendif }}} Adjust the path to the port to your taste, but keep in mind that this should be the realpath(1) of your port location. For multiple ports you can use {{{ =2Eif ${.CURDIR:M} I_WANT_CLANG=3Ddesperately =2Eendif =2Eif ${.CURDIR:M} I_WANT_CLANG=3Ddesperately =2Eendif =2Eifdef I_WANT_CLANG CC=3Dclang CXX=3Dclang++ CPP=3Dclang-cpp =2Eendif }}} to avoid useless repetition. --=20 Eygene Ryabinkin ,,,^..^,,, [ Life's unfair - but root password helps! | codelabs.ru ] [ 82FE 06BC D497 C0DE 49EC 4FF0 16AF 9EAE 8152 ECFB | freebsd.org ] --9jHkwA2TBA/ec6v+ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (Darwin) iF4EABEIAAYFAlBGP8YACgkQFq+eroFS7PtQLwEAjDsKxgWzZZdYFAUeSLhuMfxi BeK6mhippF1+lWR7xvIA/35X8mCqdGovk0E5WUzBLaPtOyYulJ47jm4ReavGEPJj =tbnF -----END PGP SIGNATURE----- --9jHkwA2TBA/ec6v+--