aboutsummaryrefslogtreecommitdiff
path: root/.circleci/runtime.sh
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2020-04-20 01:56:17 -0400
committerGitHub <noreply@github.com>2020-04-20 01:56:17 -0400
commit110489259c0696c0cee5bec6ad7695a0c93d4e74 (patch)
tree34a82b9e686c15e2acb00d62a0f8b95ac126de6d /.circleci/runtime.sh
parent57c9489b28a481abc078ad3a2dd197079f9c414b (diff)
parent667574b2e5628976c0cc0ddc2e1ae25bf5c0fd02 (diff)
downloadspmc-110489259c0696c0cee5bec6ad7695a0c93d4e74.tar.gz
Merge pull request #28 from jhunkeler/circleci-macos
Circleci macos
Diffstat (limited to '.circleci/runtime.sh')
-rw-r--r--.circleci/runtime.sh15
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