From owner-freebsd-ports@freebsd.org Mon May 23 23:22:27 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04CE9B47896 for ; Mon, 23 May 2016 23:22:27 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C13C81F25 for ; Mon, 23 May 2016 23:22:26 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::ccb1:5f0d:cf8a:a43] (unknown [IPv6:2001:7b8:3a7:0:ccb1:5f0d:cf8a:a43]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id AC7F5171F2; Tue, 24 May 2016 01:22:14 +0200 (CEST) Subject: Re: remove libstdc++ dependency from libc++ on freebsd 9.x Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_283F9808-7FB1-40CA-B208-4EA9CDDD156E"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: Date: Tue, 24 May 2016 01:22:02 +0200 Cc: freebsd-ports@freebsd.org Message-Id: <3F045901-7D5D-43AE-AB1E-B259B408A5B5@FreeBSD.org> References: To: kang joni X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2016 23:22:27 -0000 --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 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--