Skip to content

Instantly share code, notes, and snippets.

@RLovelett
Created October 29, 2019 20:50
Show Gist options
  • Save RLovelett/598f78dc81830c4841f7d90cde5c306e to your computer and use it in GitHub Desktop.
Save RLovelett/598f78dc81830c4841f7d90cde5c306e to your computer and use it in GitHub Desktop.
Compile mtoc on macOS Catalina Xcode 11
# https://github.com/macports/macports-ports/blob/master/devel/cctools/Portfile
curl -o cctools-921.tar.gz https://opensource.apple.com/tarballs/cctools/cctools-921.tar.gz
curl -o llvm-8.0.1.src.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-8.0.1/llvm-8.0.1.src.tar.xz
curl -o ld64-409.12.tar.gz https://opensource.apple.com/tarballs/ld64/ld64-409.12.tar.gz
tar xvf cctools-921.tar.gz
tar xvf llvm-8.0.1.src.tar.xz
tar xvf ld64-409.12.tar.gz
rm -rf cctools-921/include/mach/i386
cp -R llvm-8.0.1.src/include/llvm cctools-921/include/llvm
cp -R llvm-8.0.1.src/include/llvm-c cctools-921/include
cp ld64-409.12/src/other/prune_trie.h cctools-921/include/mach-o
cd cctools-921/
make -j 2
cd efitools/
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment