Last active
April 23, 2017 14:08
-
-
Save wmoxam/d06f9ccc82e03f6fea64747d82caa421 to your computer and use it in GitHub Desktop.
This file contains 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
# Also see: http://wmoxam.com/crystal-openbsd.html | |
doas pkg_add -i git llvm boehm-gc libevent pcre gmake bash | |
git clone git@github.com:wmoxam/crystal.git | |
cd crystal | |
git checkout tags/0.20.3 | |
wget http://wmoxam.com/public/crystal-0.20.3.tar.gz | |
tar zxvf crystal-0.20.3.tar.gz | |
clang++ -c -o src/llvm/ext/llvm_ext.o src/llvm/ext/llvm_ext.cc `llvm-config --cxxflags` | |
clang -c -o src/ext/sigfault.o src/ext/sigfault.c `llvm-config --cflags` | |
clang++ crystal.o -o crystal -rdynamic src/ext/sigfault.o src/llvm/ext/llvm_ext.o `(llvm-config --libs --system-libs --ldflags 2> /dev/null)` -lstdc++ -lpcre -lgc -lpthread -levent_core -levent_extra -lssl -liconv | |
gmake deps | |
CC=/usr/local/bin/clang gmake |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment