This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dobuild() { | |
export CC="$(xcrun -find -sdk ${SDK} cc)" | |
# export CXX="$(xcrun -find -sdk ${SDK} cxx)" | |
export CPP="$(xcrun -find -sdk ${SDK} cpp)" | |
export CFLAGS="${HOST_FLAGS} ${OPT_FLAGS}" | |
export CXXFLAGS="${HOST_FLAGS} ${OPT_FLAGS}" | |
export LDFLAGS="${HOST_FLAGS}" | |
./configure --host=${CHOST} --prefix=${PREFIX} --enable-openssl --with-openssl-dir="../openssl/" | |
make | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This is more or less just a bash script for this tutorial: https://0xcc.re/building-xnu-kernel-macosx-sierrra-10-12-x/ | |
# So, huge thanks to Mikal Villa! I updated the tarballs for macOS 10.13 and added line 29. | |
# | |
function checkError { | |
if [ $? -ne 0 ] ; then | |
echo "Script failed" | |
exit |