[MacPorts] LibcxxOnOlderSystems modified
MacPorts
noreply at macports.org
Thu Nov 3 07:53:24 CET 2016
Page "LibcxxOnOlderSystems" was changed by jeremyhu
Diff URL: <https://trac.macports.org/wiki/LibcxxOnOlderSystems?action=diff&version=50>
Revision 50
Comment: Changes for clang-3.8 and Leopard
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: LibcxxOnOlderSystems
=========================================================================
--- LibcxxOnOlderSystems (version: 49)
+++ LibcxxOnOlderSystems (version: 50)
@@ -69,7 +69,7 @@
{{{
sudo port -v -f uninstall inactive
}}}
-4. Build a newer clang using libc++ (note: this will also install clang-3.7 as a build dependency):
+4. Install clang-3.7 against libc++. Note that clang-3.7 is installed here because clang-3.8 has extra dependencies. You might be able to use clang-3.8 here, but I haven't tried that yet. Please report back.
{{{
sudo port -v install clang-3.7
}}}
@@ -82,23 +82,31 @@
{{{
default_compilers macports-clang-3.7 macports-clang-3.4 macports-clang-3.3 gcc-4.2 apple-gcc-4.2 gcc-4.0
}}}
-7. Rebuild cctools and ld64 to use the newer version of llvm:
+7. Rebuild cctools and ld64 to use the newer version of llvm (currently llvm-3.8):
{{{
-sudo port -v -n upgrade --enforce-variants cctools -llvm33 -llvm34
-sudo port -v upgrade --enforce-variants ld64 -llvm33 -llvm34
+sudo port -v -n upgrade --force --enforce-variants cctools -llvm33 -llvm34
+sudo port -v -n upgrade --force --enforce-variants ld64 -llvm33 -llvm34
}}}
-8. Disable the variants corresponding to the older versions of ld64 in `/opt/local/etc/macports/variants.conf`. This ensures that ld64 will be reinstalled using the appropriate variants in the future:
+8. **Snow Leopard Only:** Disable the variants corresponding to the older versions of ld64 in `/opt/local/etc/macports/variants.conf`. This ensures that ld64 will be reinstalled using the appropriate variants in the future:
{{{
-ld64_97
-ld64_127
-ld64_136
-ld64_236
}}}
-9. Reinstall ld64 with the legacy variants disabled to use ld64-latest as the default linker:
+9. **Snow Leopard Only:** Reinstall ld64 with the legacy variants disabled to use ld64-latest as the default linker:
{{{
sudo port -v upgrade --enforce-variants ld64 -ld64_97 -ld64_127 -ld64_136 -ld64_236
}}}
-10. Uninstall the bootstrap toolchain:
+10. Install clang-3.8
+{{{
+sudo port -v install clang-3.7
+}}}
+11. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3.8` as preferred compiler:
+{{{
+default_compilers macports-clang-3.8 macports-clang-3.7 macports-clang-3.4 macports-clang-3.3 gcc-4.2 apple-gcc-4.2 gcc-4.0
+}}}
+12. Uninstall the bootstrap toolchain:
{{{
sudo port -v deactivate llvm-3.4 clang-3.4
sudo port -v uninstall inactive
-------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