[120994] trunk/dports/devel/boost
Eric Cronin
ecronin at macports.org
Fri Jun 13 13:56:39 PDT 2014
> ++// Apple Clang uses libc++ by default on Mavericks (OS X 10.9) and higher
> ++// Apple Clang uses libstdc++ by default on Mountain Lion (OS X 10.8) and lower
> ++
> ++#ifdef __APPLE__
> ++#include <Availability.h>
> ++#if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1080
> ++# define BOOST_APPLE_CLANG_NO_LIBCXX
> ++#endif
> ++#endif
> ++
It's possible (and I hope someday soon the default, so C++11 code works on those OSes) to build all of MacPorts with libc++ on 10.7/10.8, in which case this code would do the wrong thing.
I think the snippet Jeremy provided in a comment on another issue is more like what is needed here: <https://trac.macports.org/ticket/41154#comment:1>
Thanks,
Eric
More information about the macports-dev
mailing list