Changes between Version 49 and Version 50 of LibcxxOnOlderSystems
- Timestamp:
- Nov 3, 2016, 6:53:24 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LibcxxOnOlderSystems
v49 v50 70 70 sudo port -v -f uninstall inactive 71 71 }}} 72 4. Build a newer clang using libc++ (note: this will also install clang-3.7 as a build dependency):72 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. 73 73 {{{ 74 74 sudo port -v install clang-3.7 … … 83 83 default_compilers macports-clang-3.7 macports-clang-3.4 macports-clang-3.3 gcc-4.2 apple-gcc-4.2 gcc-4.0 84 84 }}} 85 7. Rebuild cctools and ld64 to use the newer version of llvm :85 7. Rebuild cctools and ld64 to use the newer version of llvm (currently llvm-3.8): 86 86 {{{ 87 sudo port -v -n upgrade -- enforce-variants cctools -llvm33 -llvm3488 sudo port -v upgrade --enforce-variants ld64 -llvm33 -llvm3487 sudo port -v -n upgrade --force --enforce-variants cctools -llvm33 -llvm34 88 sudo port -v -n upgrade --force --enforce-variants ld64 -llvm33 -llvm34 89 89 }}} 90 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:90 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: 91 91 {{{ 92 92 -ld64_97 … … 95 95 -ld64_236 96 96 }}} 97 9. Reinstall ld64 with the legacy variants disabled to use ld64-latest as the default linker:97 9. **Snow Leopard Only:** Reinstall ld64 with the legacy variants disabled to use ld64-latest as the default linker: 98 98 {{{ 99 99 sudo port -v upgrade --enforce-variants ld64 -ld64_97 -ld64_127 -ld64_136 -ld64_236 100 100 }}} 101 10. Uninstall the bootstrap toolchain: 101 10. Install clang-3.8 102 {{{ 103 sudo port -v install clang-3.7 104 }}} 105 11. Edit `/opt/local/etc/macports/macports.conf` again to add `macports-clang-3.8` as preferred compiler: 106 {{{ 107 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 108 }}} 109 12. Uninstall the bootstrap toolchain: 102 110 {{{ 103 111 sudo port -v deactivate llvm-3.4 clang-3.4