Changes between Version 65 and Version 66 of LibcxxOnOlderSystems


Ignore:
Timestamp:
Nov 23, 2018, 1:26:40 AM (5 years ago)
Author:
kencu (Ken)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LibcxxOnOlderSystems

    v65 v66  
    1313
    1414If 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.
     15
     16[Note: since the original writing of this article, MacPorts has developed the ability to build software against newer versions of libgcc that support c++11 (and newer) as well. This is currently undertaken by default in MacPorts. You may still wish to use libc++ as your default runtime to achieve maximal compatibility with currently-developed software, however. If so, continue with these instructions.]
    1517
    1618== Lion and Mountain Lion ==
     
    6264buildfromsource    always
    6365default_compilers  macports-clang-3.4 gcc-4.2 apple-gcc-4.2 gcc-4.0
     66revupgrade_autorun no
    6467}}}
    65683. Uninstall all the remaining inactive ports:
     
    9699sudo port -v deactivate ld64-127
    97100}}}
    98 10. **Experimental:** Install clang-3.9
     10110. Install clang-3.9
    99102{{{
    100103sudo port -v install clang-3.9
    101104}}}
    102 11. **Experimental:** Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3.9` as preferred compiler:
     10511. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3.9` as preferred compiler, and re-enable revupgrade_autorun:
    103106{{{
    104 default_compilers macports-clang-3.9 macports-clang-3.8 macports-clang-3.7 macports-clang-3.4 gcc-4.2 apple-gcc-4.2 gcc-4.0
     107default_compilers macports-clang-3.9 macports-clang-3.7 macports-clang-3.4 gcc-4.2 apple-gcc-4.2 gcc-4.0
     108## delete this line you added previously ==> revupgrade_autorun         no
    105109}}}
    10611012. Uninstall the bootstrap toolchain:
     
    109113sudo port -v uninstall inactive
    110114}}}
     11513. Snow Leopard is able to install and use versions of clang and llvm up at least 7.0 at present. Leopard is presently limited to clang-3.9.
    111116
    112117== Leopard (ppc) ==