Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Jan 2013 00:13:19 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Mark van Dijk <lists@internecto.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: src.conf question
Message-ID:  <50E36D8F.5030106@zedat.fu-berlin.de>
In-Reply-To: <50E36736.4020309@internecto.net>
References:  <20130101064416.559896f0@dell64> <20130101190727.GQ1787@albert.catwhisker.org> <50E36736.4020309@internecto.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigB6276C2A2CD4D2B7E3ADC8A3
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Am 01/01/13 23:46, schrieb Mark van Dijk:
>> Accordingly, I configured /etc/src.conf to read:
>>
>> CC=3Dclang
>> CXX=3Dclang++
>> CPP=3Dclang-cpp
>> WITH_LIBCPLUSPLUS=3Dyes
>=20
> 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?
>=20
> Thanks
> Mark




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

CXXFLAGS+=3D              -stdlib=3Dlibc++  -std=3Dc++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.


--------------enigB6276C2A2CD4D2B7E3ADC8A3
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iQEcBAEBAgAGBQJQ422QAAoJEOgBcD7A/5N8XrsH/1gsMoBzawIaXwWsFVbkkpfp
6ZN6MuHN/LCKOsRmFxxROo9sF/G6WA7RZVhuBRU8zZjxcF5v4HNuz7OCkM/PuEON
Z0cv5TWazgWjRXLWNPcAcK5jjCNaeQdT2xgzn8d6S0k8dSVjhqUx7pVkJHYh/uA3
z0NwWH41T0RPirQmXy7/cx96w9Jj8bDgR/LEChqlvfmiyuq2zSCEVxQiu6dvGLhC
iuSUMEHnNznvYQQ8p+scxpsTY7+BGPihwC/ac5wUX6pgyg8okAZpCJpzPcCuKDWU
m+gfYqJYqWwaiF65n1ZRobvHqdfqOOcGOQqwkvzevjxneVfpOJaZJRTl+uvZKdc=
=c1iV
-----END PGP SIGNATURE-----

--------------enigB6276C2A2CD4D2B7E3ADC8A3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50E36D8F.5030106>