diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-04-19 22:50:56 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-04-20 00:21:04 -0400 |
commit | cc29912fcbde997ef710a34fe3d52bb17bd67462 (patch) | |
tree | 4a3b05f4ad8303bf0f4744cf02f215a9732b24d9 /.circleci/runtime.sh | |
parent | 4cd31e08440e438c3dfd1f224babdc627d591530 (diff) | |
download | spmc-cc29912fcbde997ef710a34fe3d52bb17bd67462.tar.gz |
Add 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 |