[cfe-dev] Why no Debian package for libc++?

Ben Pope benpope81 at gmail.com
Mon Jul 29 00:37:39 PDT 2013


On 29/07/13 14:55, Arji Cot wrote:
> Those are dynamically linked libraries, for what you know you could have
> libsupc++ statically linked to your libc++/abi or to at least of those
> libraries.

Its a fair point, but...

> I'm not aware of any linux distribution or libc++ build under linux that
> is just using libc++ without libstdc++ or libsupc++, for what I know, at
> this point in time, libc++, at least under linux, is using libstdc++ and
> libsupc++ to provide a complete C++ support and filling the blanks that
> are still not supported by the library.

FreeBSD 10 has switched to libc++ and libcxxrt and is working towards a
C++ toolchain that is free of GPLv2, according to the docs, it doesn't
rely upon libsupc++:

https://wiki.freebsd.org/NewC%2B%2BStack


> I think that libc++ will reach the indendpence from the GNU libs if and
> only if it will provide a complete C++ environment.

As far as I know it pretty much does, aside from using libgcc_s which
may be replaceable by libunwind.  In order to link against other
libraries on the system, some of these bits are required anyway, it's a
convenience thing.

I don't think there is very much stopping a linux distribution switching
entirely to libc++ with libcxxrt and libunwind, dropping GCC entirely.
Of course, it would be a massive pain for the users when they have to
build everything from source as practically no binary in existence today
will work on their system.

Ben




More information about the cfe-dev mailing list