Changes between Version 4 and Version 5 of LibcxxOnOlderSystems


Ignore:
Timestamp:
Jan 13, 2015, 5:41:10 PM (9 years ago)
Author:
jeremyhu (Jeremy Huddleston Sequoia)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LibcxxOnOlderSystems

    v4 v5  
    1616delete_la_files is not necessary, it is reccomended since you need to set buildfromsource.
    1717
    18 == Leopard and Snow Leopard ==
     18== Leopard and Snow Leopard (Intel) ==
    1919
    2020Leopard and Snow Leopard do not have libc++ installed by the OS, but MacPorts can build and install system roots that contain these runtimes for your use.  After installing these roots (which is done automatically when the libcxxabi and libcxx ports activate), you can choose to continue using libstdc++ as the default C++ runtime in MacPorts or configure MacPorts to use the new libc++ runtime.
     
    6262sudo port -v install clang-3.4 configure.compiler=macports-clang-3.5
    6363}}}
     64
     65== Leopard (ppc) ==
     66
     67Power PC support is still in active development in llvm, so expect it to not be as stable as more established toolchains.  Additionally, it is non-trivial to bootstrap libc++ on Leopard because the libcxx port does not build with versions older than clang-3.6, and clang-3.5 and newer require libc++.  Starting on an Intel Mac with libc++ already, I've been able to build libc++ for ppc but have not yet tested it:
     68{{{
     69sudo port -v -s install clang-3.6
     70
     71# Doesn't actually install the intel libc++ from the system, just the root
     72sudo port -v -f uninstall libcxx libcxxabi libmacho libunwind
     73
     74# ld crashes in getsectiondata linking the ppc slice of libmacho if libmacho is built with macports-clang-3.6
     75sudo port -v -s install libunwind universal_archs="x86_64 i386 ppc" configure.compiler=gcc-4.2
     76
     77sudo port -v -s install libcxx universal_archs="x86_64 i386 ppc" configure.compiler=macports-clang-3.6
     78}}}
     79
     80== Tiger ==
     81
     82I do not have a Tiger machine or VM, so I am not sure how feasible it is to get things working on Tiger.  If you are adventurous, I suggest you follow the Leopard instructions above and report issues.  Note that it will take a while to build libcxx because we'll need to build apple-gcc42 and use it to build clang-3.4 and use it to build libcxx.