From owner-freebsd-stable@FreeBSD.ORG Thu Jul 26 15:28:52 2012 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C6EAE106564A; Thu, 26 Jul 2012 15:28:52 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id 1ADAD8FC08; Thu, 26 Jul 2012 15:28:52 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.4/8.14.4) with ESMTP id q6QFRasv061723; Thu, 26 Jul 2012 10:27:36 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.4/8.14.4/Submit) id q6QFRatS061722; Thu, 26 Jul 2012 10:27:36 -0500 (CDT) (envelope-from brooks) Date: Thu, 26 Jul 2012 10:27:36 -0500 From: Brooks Davis To: Dimitry Andric Message-ID: <20120726152736.GD48162@lor.one-eyed-alien.net> References: <5007B7B8.4020206@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NY6JkbSqL3W9mApi" Content-Disposition: inline In-Reply-To: <5007B7B8.4020206@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Yanhui Shen , freebsd-stable@FreeBSD.org Subject: Re: Why not provide libclang.so in base? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2012 15:28:52 -0000 --NY6JkbSqL3W9mApi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 19, 2012 at 09:31:04AM +0200, Dimitry Andric wrote: > On 2012-07-18 14:54, Yanhui Shen wrote: > > I'm using clang-complete plugin in vim, > > it claims with libclang.so instead of bin/clang it works better. > >=20 > > However libclang.so is not installed by a default "make buildworld && m= ake > > installworld", > > even with 'WITH_CLANG_EXTRAS=3D"YES"' in src.conf. >=20 > This is because it would add quite a lot of build overhead to produce > that .so file: all the object files will need to be recompiled yet again > for shared library support. >=20 > That said, we will probably want to provide at least a shared LLVM lib > in the future, since it can be re-used by other programs. When that > happens, it would not be too much extra work to provide a shared Clang > library. When I talked to Chris Lattner about shared libraries, his advice was that under no circumstances should we consider supporting any C++ APIs =66rom the base system. We can link tools in the system with them and we can provide supportable C API wrappers as Apple does, but any port that links against a libclang.so or libLLVM.so is doomed to break so ports should link against port versions so they can be updated as needed. -- Brooks --NY6JkbSqL3W9mApi Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iD8DBQFQEWHnXY6L6fI4GtQRAjn8AKDMSMHPgImpcmwE7toZsk2DONQMVACfSt4G gofC1BxsVUvw6yQnkoqhhAA= =rze4 -----END PGP SIGNATURE----- --NY6JkbSqL3W9mApi--