[MacPorts] LibcxxOnOlderSystems modified

MacPorts Wiki noreply at macports.org
Fri Nov 23 01:26:47 UTC 2018


Page "LibcxxOnOlderSystems" was changed by kencu
Diff URL: <https://trac.macports.org/wiki/LibcxxOnOlderSystems?action=diff&version=66>
Revision 66
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: LibcxxOnOlderSystems
=========================================================================
--- LibcxxOnOlderSystems (version: 65)
+++ LibcxxOnOlderSystems (version: 66)
@@ -12,6 +12,8 @@
 At 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.
 
 If 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.
+
+[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.]
 
 == Lion and Mountain Lion ==
 
@@ -61,6 +63,7 @@
 cxx_stdlib         libc++
 buildfromsource    always
 default_compilers  macports-clang-3.4 gcc-4.2 apple-gcc-4.2 gcc-4.0
+revupgrade_autorun no
 }}}
 3. Uninstall all the remaining inactive ports:
 {{{
@@ -95,19 +98,21 @@
 sudo port -v upgrade --enforce-variants ld64 -ld64_97 -ld64_127 -ld64_236
 sudo port -v deactivate ld64-127
 }}}
-10. **Experimental:** Install clang-3.9
+10. Install clang-3.9
 {{{
 sudo port -v install clang-3.9
 }}}
-11. **Experimental:** Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3.9` as preferred compiler:
+11. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3.9` as preferred compiler, and re-enable revupgrade_autorun:
 {{{
-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
+default_compilers macports-clang-3.9 macports-clang-3.7 macports-clang-3.4 gcc-4.2 apple-gcc-4.2 gcc-4.0
+## delete this line you added previously ==> revupgrade_autorun  	no
 }}}
 12. Uninstall the bootstrap toolchain:
 {{{
 sudo port -v deactivate llvm-3.4 clang-3.4
 sudo port -v uninstall inactive
 }}}
+13. 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.
 
 == Leopard (ppc) ==
 
-------8<------8<------8<------8<------8<------8<------8<------8<--------

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

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 admin at macports.org.


More information about the macports-changes mailing list