diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2020-04-20 01:56:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 01:56:17 -0400 |
commit | 110489259c0696c0cee5bec6ad7695a0c93d4e74 (patch) | |
tree | 34a82b9e686c15e2acb00d62a0f8b95ac126de6d /.circleci/runtime.sh | |
parent | 57c9489b28a481abc078ad3a2dd197079f9c414b (diff) | |
parent | 667574b2e5628976c0cc0ddc2e1ae25bf5c0fd02 (diff) | |
download | spmc-110489259c0696c0cee5bec6ad7695a0c93d4e74.tar.gz |
Merge pull request #28 from jhunkeler/circleci-macos
Circleci macos
Diffstat (limited to '.circleci/runtime.sh')
-rw-r--r-- | .circleci/runtime.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.circleci/runtime.sh b/.circleci/runtime.sh new file mode 100644 index 0000000..0b41b9c --- /dev/null +++ b/.circleci/runtime.sh @@ -0,0 +1,15 @@ +if [[ $(uname -s) == Linux ]]; then + : +elif [[ $(uname -s) == Darwin ]]; then + OPENSSL_DIR=/usr/local/opt/openssl + PATH="$OPENSSL_DIR/bin:$PATH" + LDFLAGS="$LDFLAGS -L${OPENSSL_DIR}/lib" + CFLAGS="$CFLAGS -I${OPENSSL_DIR}/include" + + GTAR_DIR=/usr/local/opt/gnu-tar + PATH="$GTAR_DIR/libexec/gnubin:$PATH" + + export PATH + export LDFLAGS + export CFLAGS +fi |