[MacPorts] LibcxxOnOlderSystems modified

MacPorts noreply at macports.org
Sun Jan 11 17:53:09 PST 2015


Page "LibcxxOnOlderSystems" was changed by jeremyhu at macports.org
Diff URL: <https://trac.macports.org/wiki/LibcxxOnOlderSystems?action=diff&version=2>
Revision 2
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: LibcxxOnOlderSystems
=========================================================================
--- LibcxxOnOlderSystems (version: 1)
+++ LibcxxOnOlderSystems (version: 2)
@@ -19,35 +19,37 @@
 
 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 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.
 
-=== Bootstrapping: Install libc++ and libc++abi ===
+=== Bootstrapping 1: Install libc++ and libc++abi ===
 
 1. Start with a new install of MacPorts or '''uninstall all ports that use C++'''
 2. Install the libcxx port.  When it activates, the libcxxabi and libcxx ports will install libc++.dylib and libc++abi.dylib (which will remain after you uninstall MacPorts).  This will pull in a number of dependencies.
 {{{
 sudo port -v -s install libcxx
 }}}
-3. Deactivate all your active ports (or at least the C++ ports) in order to prepare to rebuild them, and just activate the new toolchain:
+
+=== Bootstrapping 2: Build a current version of clang against libc++ ===
+1. Deactivate all your active ports (or at least the C++ ports) in order to prepare to rebuild them, and just activate the new toolchain:
 {{{
 	sudo port -v -f deactivate active
 	sudo port -v install clang-3.4 ld64 cctools
 }}}
-4. Edit /opt/local/etc/macports/macports.conf to contain:
+2. Edit /opt/local/etc/macports/macports.conf to contain:
 {{{
 cxx_stdlib         libc++
 buildfromsource    always
 delete_la_files    yes
 default_compilers  macports-clang-3.4 macports-clang-3.3 gcc-4.2 apple-gcc-4.2 gcc-4.0
 }}}
-5. Uninstall all the remaining inactive ports:
+3. Uninstall all the remaining inactive ports:
 {{{
 sudo port -v -f uninstall inactive
 }}}
-6. Build a newer clang compiler using libc++ and uninstall the old one using libstdc++:
+4. Build a newer clang compiler using libc++ and uninstall the old one using libstdc++:
 {{{
 sudo port -v install clang-3.5
 sudo port -v uninstall llvm-3.4 clang-3.4
 }}}
-7. Either:
+5. Either:
     1. Edit /opt/local/etc/macports/macports.conf again to add macports-clang-3.5 before macports-clang-3.4.
     2. Rebuild clang-3.4 using clang-3.5:
 {{{
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/LibcxxOnOlderSystems>
MacPorts <https://www.macports.org/>
Ports system for OS X

This is an automated message. Someone added your email address to be
notified of changes on 'LibcxxOnOlderSystems' page.
If it was not you, please report to .


More information about the macports-changes mailing list