Date: Wed, 9 Jul 2014 07:27:46 +0200 From: Polytropon <freebsd@edvax.de> To: Stephen Woolerton <direct727@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: How to build ports, using a version of clang installed from ports Message-ID: <20140709072746.8efea7b4.freebsd@edvax.de> In-Reply-To: <A6EBF4DE-7701-4FBB-BC1E-DC4644400A0E@gmail.com> References: <A6EBF4DE-7701-4FBB-BC1E-DC4644400A0E@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140709072746.8efea7b4.freebsd>