From owner-freebsd-questions@FreeBSD.ORG Wed Jul 9 05:27:55 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 9EE9AD3A for ; Wed, 9 Jul 2014 05:27:55 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 63E1321AD for ; Wed, 9 Jul 2014 05:27:55 +0000 (UTC) Received: from r56.edvax.de (port-92-195-69-249.dynamic.qsc.de [92.195.69.249]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id A3E623CC00; Wed, 9 Jul 2014 07:27:46 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s695RkIm002160; Wed, 9 Jul 2014 07:27:46 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 9 Jul 2014 07:27:46 +0200 From: Polytropon To: Stephen Woolerton Subject: Re: How to build ports, using a version of clang installed from ports Message-Id: <20140709072746.8efea7b4.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org 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:27:55 -0000 On Wed, 9 Jul 2014 10:44:33 +1200, Stephen Woolerton wrote: > I wish to compile a version of clang from ports, and then use that > to build all my ports. First you have to install the desired clang version from ports. The binaries will usually have a version suffix to distinguish them from the binaries supplied with the v10 OS. Then you should be able to add the following to /etc/make.conf: .if !empty(.CURDIR:M/usr/ports/*) && exists(/usr/local/bin/clang33) CC=clang33 CXX=clang++33 CPP=clang-cpp33 .endif (This is just an assumption regarding names, please check! I don't have access to a v10 system at the moment.) More info here: https://wiki.freebsd.org/PortsAndClang You can "translate" this concept to clang: http://www.freebsd.org/doc/en/articles/custom-gcc/article.html -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...