Changes between Version 19 and Version 20 of LibcxxOnOlderSystems


Ignore:
Timestamp:
Oct 26, 2015, 3:17:34 AM (9 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

rewrite introduction

Legend:

Unmodified
Added
Removed
Modified
  • LibcxxOnOlderSystems

    v19 v20  
    11= Using libc++ on older system =
    22
    3 More and more C++ software is being written using the C++11 standard. The default C++ runtime on OS X 10.9 and later is libc++ which supports C++11 but on OS X 10.8 and earlier the default C++ runtime is a version of libstdc++ based on GCC 4.2.1 which does not support C++11. If you wish to build C++11-using software on 10.8 or earlier, you can switch MacPorts to use libc++ instead of libstdc++, but this must be done for MacPorts as a whole; it can't be done for individual ports.
     3More and more C++ software is being written using the C++11 standard.
     4If you have been referred to this page, you are trying to build software that uses C++11 on OS X 10.8 or earlier.
     5The default C++ runtime on OS X 10.8 and earlier is a version of libstdc++ based on GCC 4.2.1 which does not support C++11.
     6The default C++ runtime on OS X 10.9 and later is libc++ which does support C++11.
    47
    5 At this time the MacPorts project does not build binary packages for libc++ on systems older than 10.9, so if you make this change, MacPorts will be building all ports from source.
     8The recommended solution, if your computer supports it, is to upgrade to OS X 10.9 or later. If you do this, you can ignore the rest of this article, and should instead see the [wiki:Migration migration instructions].
     9
     10Alternately, you can switch MacPorts on OS X 10.8 or earlier to use libc++ instead of libstdc++.
     11This must be done for MacPorts as a whole; it can't be done for individual ports.
     12
     13At this time the MacPorts project does not build binary packages for libc++ on OS X 10.8 or earlier, so if you make this change, MacPorts will be building all ports from source.
    614
    715If you use MacPorts C++-using ports as dependencies for C++-using software that you compile outside of MacPorts, you must compile that software using libc++ as well.