src.conf question

O. Hartmann ohartman at zedat.fu-berlin.de
Tue Jan 1 23:13:22 UTC 2013


Am 01/01/13 23:46, schrieb Mark van Dijk:
>> Accordingly, I configured /etc/src.conf to read:
>>
>> CC=clang
>> CXX=clang++
>> CPP=clang-cpp
>> WITH_LIBCPLUSPLUS=yes
> 
> This has worked for me as well, but I am not familiar with
> 'WITH_LIBCPLUSPLUS'. Why did you add that and what does it do?
> 
> Thanks
> Mark




WITH_LIBCPLUSPLUS = yes makes the new libc++ being built. It can be used
with LLVM/CLANG by setting explicitely

CXXFLAGS+=              -stdlib=libc++  -std=c++11

in /etc/src.conf for being used with the base system's source build or,
if you like to compile some other software, like ports using a C++
compiler (clang++ on systems like 9.1-STABLE or c++ on 10.0-CUR where
cc/c++ refers now by default to LLVM/CLANG).

While it works well on FreeBSD 10.0-CURRENT at the moment (not for ports
at all, but for the main system's source) it might not be the same on
STABLE at the moment since the LLVM/CLANG is still 3.1 while on CURRENT
it's 3.2.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20130102/f60724cf/attachment.sig>


More information about the freebsd-stable mailing list