Changes between Version 64 and Version 65 of LibcxxOnOlderSystems
- Timestamp:
- Jun 6, 2018, 11:57:27 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LibcxxOnOlderSystems
v64 v65 30 30 == Leopard and Snow Leopard (Intel) == 31 31 32 Leopard 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 libcxx abi 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.32 Leopard 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 libcxx port activates), you can choose to continue using libstdc++ as the default C++ runtime in MacPorts or configure MacPorts to use the new libc++ runtime. 33 33 34 34 '''Warning:''' libc++ is fairly well tested on Snow Leopard, and Leopard support was only recently added on November 1, 2016. … … 41 41 42 42 1. Start with a new install of MacPorts or '''uninstall all ports that use C++''' 43 2. Install the libcxx port. When it activates, the libcxxabi and libcxx portswill install libc++.dylib and libc++abi.dylib (which will remain after you uninstall MacPorts). This will pull in a number of dependencies.43 2. Install the libcxx port. When it activates, it will install libc++.dylib and libc++abi.dylib (which will remain after you uninstall MacPorts). This will pull in a number of dependencies. 44 44 {{{ 45 45 sudo port -v install libcxx … … 117 117 sudo port -v -s install clang-3.7 118 118 119 # Re-build libcxx, lib cxxabi, libmacho, and libunwind with a ppc slice119 # Re-build libcxx, libmacho, and libunwind with a ppc slice 120 120 sudo port -v -n upgrade --force libmacho +universal universal_archs="x86_64 i386 ppc" configure.compiler=macports-clang-3.7 121 121 sudo port -v -n upgrade --force libunwind +universal universal_archs="x86_64 i386 ppc" configure.compiler=macports-clang-3.7 122 sudo port -v -n upgrade --force libcxxabi +universal universal_archs="x86_64 i386 ppc" configure.compiler=macports-clang-3.7123 122 sudo port -v -n upgrade --force libcxx +universal universal_archs="x86_64 i386 ppc" configure.compiler=macports-clang-3.7 124 123 }}}