Question about compiler blacklisting (llvm-gcc for wxWidgets)

Joshua Root jmr at
Thu Nov 2 18:00:44 UTC 2017

>> Begin forwarded message:
>> From: Vadim Zeitlin
>> As an aside, under Linux it's actually possible to mix and match
>> -std=c++xx options when building the library and the applications, but this
>> is due to gcc/libstdc++ carefully maintaining the ABI and I'm all but sure
>> that this is not going to work under macOS.

The reason for the ABI incompatibilities is, AIUI, that before C++11 the
C++ standard did not specify an ABI. So theoretically mixing libc++ and
libstdc++ works just as well whether you are on Linux or macOS -- that
is to say, if everything is a new enough version to be C++11 compliant
and you use it in that mode, it should work.

If, OTOH, you try any mix involving a pre-C++11 stdlib (like the system
libstdc++ on macOS), it won't work.

- Josh

More information about the macports-dev mailing list