Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 May 2016 01:22:02 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        kang joni <kangjoni76@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: remove libstdc++ dependency from libc++ on freebsd 9.x
Message-ID:  <3F045901-7D5D-43AE-AB1E-B259B408A5B5@FreeBSD.org>
In-Reply-To: <CAOmy0wLmRA%2BCzBkyA7=gc_Vd-_am73cvpH4UeocS%2B5dXzcBPcQ@mail.gmail.com>
References:  <CAOmy0wLmRA%2BCzBkyA7=gc_Vd-_am73cvpH4UeocS%2B5dXzcBPcQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_283F9808-7FB1-40CA-B208-4EA9CDDD156E
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii

On 23 May 2016, at 11:02, kang joni <kangjoni76@gmail.com> wrote:
> 
> I need to backport c++11project to BSD 9.x. How to remove libstdc++
> dependency from libc++ and libc++abi as freebsd 10.x did?
> I'm stuck on this. The llvm docs is unclear.

On FreeBSD 9.x, C++11 is not supported out of the box.  As I mentioned
in another thread, currently the only easy way is to build and install
world with the following in /etc/src.conf:

WITH_CLANG_IS_CC=y
WITH_LIBCPLUSPLUS=y

This will make clang the default compiler, and install libc++ headers
and libraries on the system.

Afterwards, you can use -stdlib=libc++ -std=c++11 in the CXXFLAGS for
your project.

-Dimitry


--Apple-Mail=_283F9808-7FB1-40CA-B208-4EA9CDDD156E
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.30

iEYEARECAAYFAldDkKUACgkQsF6jCi4glqMbNgCgxykFsXhcGoK+eJDL1gP9ziUM
qRIAnj+7IWbqcrRYeIIIXfrGleqDcjBD
=NfLK
-----END PGP SIGNATURE-----

--Apple-Mail=_283F9808-7FB1-40CA-B208-4EA9CDDD156E--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F045901-7D5D-43AE-AB1E-B259B408A5B5>