Re: command line environment and port to equal CURRENT clang?

From: Jeffrey Bouquet <jbtakk_at_iherebuywisely.com>
Date: Mon, 23 Jan 2017 13:00:29 -0800 (PST)
On Mon, 23 Jan 2017 20:18:18 +0100, Dimitry Andric <dim_at_FreeBSD.org> wrote:

> On 23 Jan 2017, at 05:32, Jeffrey Bouquet <jbtakk_at_iherebuywisely.com> wrote:
> > 
> > ... that may work in /usr/src/sbin for example?
> > make clang=[/usr/ports/lang/??]clang-foo clang+ depend;   make;   # so that a buildworld is not needed?
> > or that would have to be created as a feature..
> 
> The following appears to work:
> 
> pkg install llvm39
> export CC=/usr/local/bin/clang39
> export CXX=/usr/local/bin/clang++39
> export CPP=/usr/local/bin/clang-cpp
> cd /usr/src/sbin
> make obj
> make depend
> make
> 
> Note that this may pick up the wrong versions of libraries, so do not
> be amazed if stuff blows up.
> 
> Also note that clang in base has a few patches which might not be in the
> port, so you could also run into unexpected bugs in the port.
> 
> -Dimitry


Thanks.
pkg fetch is on the fourth 'timeout' to fetch the file, though, I emailed
the pkg_at_freebsd.org list... wget -c -nd in this case did not help either, unless
that is more tricks to learn.
Received on Mon Jan 23 2017 - 20:00:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:09 UTC