From owner-freebsd-questions@FreeBSD.ORG Wed Jul 9 05:44:20 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 92EAAC1 for ; Wed, 9 Jul 2014 05:44:20 +0000 (UTC) Received: from ipmail04.adl6.internode.on.net (ipmail04.adl6.internode.on.net [150.101.137.141]) by mx1.freebsd.org (Postfix) with ESMTP id 2D9D6236F for ; Wed, 9 Jul 2014 05:44:19 +0000 (UTC) Received: from ppp14-2-0-203.lns21.adl2.internode.on.net (HELO leader.local) ([14.2.0.203]) by ipmail04.adl6.internode.on.net with ESMTP; 09 Jul 2014 15:14:12 +0930 Message-ID: <53BCD6AA.6020907@ShaneWare.Biz> Date: Wed, 09 Jul 2014 15:14:10 +0930 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Stephen Woolerton , freebsd-questions@freebsd.org Subject: Re: How to build ports, using a version of clang installed from ports References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2014 05:44:20 -0000 On 09/07/2014 08:14, Stephen Woolerton wrote: > Hi everyone, > > I wish to compile a version of clang from ports, and then use that to > build all my ports. > > By way of background, I'm running a 10.0 arm snapshot and the version > of clang on the system is 3.4. A number of ports won't compile with > clang 3.4, and so I wish to build the clang 3.3 port, and then > compile all my ports with clang 3.3. > > How would I do this please? > In /etc/make.conf add - CC=/usr/local/bin/clang33 CXX=/usr/local/bin/clang++33 CPP=/usr/local/bin/clang-cpp33 If you find a port that has trouble with that you can add .if ${.CURDIR:M*/math/atlas*} USE_GCC=any .endif you can swap any for a specific version number eg- USE_GCC=4.8 Or you can go the other way and specify which ports use clang33