Last active
July 26, 2020 20:13
-
-
Save zentrope/f05bbcdd84de6d2b1ae69f39b21262ff to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
gambit_dir=$(brew --prefix gambit-scheme) | |
openssl_dir=$(brew --prefix openssl) | |
ssl="${openssl_dir}/lib/libssl.a" | |
crypto="${openssl_dir}/lib/libcrypto.a" | |
gambita="${gambit_dir}/current/lib/libgambit.a" | |
gsc="/usr/local/opt/gambit-scheme/current/bin/gsc" | |
#include="-I${gambit_dir}/current/include" | |
#opts="-Wno-unused -Wno-write-strings -Wdisabled-optimization -fwrapv -fno-strict-aliasing -fno-math-errno -fomit-frame-pointer -fPIC -fno-common -D___SINGLE_HOST" | |
${gsc} -c hello.scm | |
${gsc} -link hello.c | |
${gsc} -obj hello.c hello_.c | |
cmd="clang --verbose ${ssl} ${crypto} ${gambita} hello.o hello_.o -o hello" | |
echo ${cmd} | |
${cmd} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment