[cfe-dev] Curious about libcxx __libcpp_nmstr design

David Chisnall David.Chisnall at cl.cam.ac.uk
Wed Oct 9 06:13:58 PDT 2013


On 9 Oct 2013, at 13:59, Yaron Keren <yaron.keren at gmail.com> wrote:

> BTW, MingW libstdc++ standard DLL build statically links libsupc++ so it's not replaceable. If libcxxabi.dll is also around, two copies of the ABI will exist linked at the same time to different parts of the programs.

On FreeBSD, we made libsupc++ and libcxxrt into shared libraries and then built libstdc++ as a filter library.  It then links to either libsupc++ or libcxxrt and programs that use it will see the ABI library's symbols as if they had the same symbol version as the old ones in libstdc++.  

This does require linking libstdc++ in a special way, but it doesn't require recompiling any code that links to libstdc++.  I wonder if a similar solution would be possible for Windows?  

David





More information about the cfe-dev mailing list