On Thu, May 05, 2016 at 05:45:35PM -0400, Nathan Froyd wrote: > On Thu, May 5, 2016 at 5:36 PM, <cosinusoida...@gmail.com> wrote: > > Out of interest, what is the situation on Linux? Which C++11 standard > > library will you be using? Will you be shipping your own copy as a shared > > library, or will you be using the system one? If I understand correctly, I > > assume you cannot link against the libstdc++ that ships with GCC 4.8.5 as > > the libstdc++ C++11 ABI did not stabilise until GCC 5.X (meaning your > > binaries will not work properly unless the distro where you are running > > ships exactly the same libstdc++)? > > We use libstdc++ on Linux, with special hacks so that our binaries > will actually run against older shared libstdc++ than the headers we > compile with. (It's possible that libstdc++ prior to GCC 5 isn't > completely C++11 compliant, but it's probably close enough for our > current purposes.) See e.g. > > http://dxr.mozilla.org/mozilla-central/source/build/unix/stdc++compat/stdc++compat.cpp#27 > http://dxr.mozilla.org/mozilla-central/source/config/gcc-stl-wrapper.template.h#55 > > for an idea of what we do. We haven't tried crossing the GCC 5 ABI > breakage yet.
Specifically, we build with -D_GLIBCXX_USE_CXX11_ABI=0. Mike _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform