Added static linking for macOS. Also fixed the build.sh. Thanks, vass :/

This commit is contained in:
Zachary Pierson
2017-11-10 16:11:55 -06:00
parent 85fab55e57
commit 6d880bc3bb
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -7,11 +7,13 @@ libraries="-pthread -ldl -lm -lstdc++"
other_args=""
compiler="clang"
if [ -z "$release_mode" ]; then release_mode="0"; fi
if [ "$release_mode" -eq "0" ]; then
other_args="${other_args} -g
other_args="${other_args} -g"
fi
if [ "$release_mode" -eq "1" ]; then
other_args="${other_args} -O3 -march=native
other_args="${other_args} -O3 -march=native"
fi
if [[ "$(uname)" == "Darwin" ]]; then