How to build ports, using a version of clang installed from ports

Polytropon freebsd at
Wed Jul 9 05:27:55 UTC 2014

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)

(This is just an assumption regarding names, please check! I don't
have access to a v10 system at the moment.)

More info here:

You can "translate" this concept to clang:

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list