diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-09-21 19:11:44 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-09-21 19:11:44 +0800 |
commit | 2c71e8448a9c03e924a7869351eebf2def1af057 (patch) | |
tree | 3c336b8ed7c14e7ee25d02ab2ec5efa091e75e20 | |
parent | 4bf24c57bb84332339014cebec9e0531a5b0772f (diff) | |
download | dexon-consensus-2c71e8448a9c03e924a7869351eebf2def1af057.tar dexon-consensus-2c71e8448a9c03e924a7869351eebf2def1af057.tar.gz dexon-consensus-2c71e8448a9c03e924a7869351eebf2def1af057.tar.bz2 dexon-consensus-2c71e8448a9c03e924a7869351eebf2def1af057.tar.lz dexon-consensus-2c71e8448a9c03e924a7869351eebf2def1af057.tar.xz dexon-consensus-2c71e8448a9c03e924a7869351eebf2def1af057.tar.zst dexon-consensus-2c71e8448a9c03e924a7869351eebf2def1af057.zip |
env.sh: set LD_LIBRARY_PATH and DYLD_LIBRARY_PATH
-rw-r--r-- | bin/env.sh | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,5 +1,7 @@ # Environment variables for the project. +export GITROOT=$(git rev-parse --show-toplevel) + # Setup custom build flags for non-root homebrew installation. if [ "$(uname -o)" = "Darwin" ] && [ "$(brew --prefix)" != "/usr/local" ]; then export BLS256_SLIB_LDFLAGS="-L$(brew --prefix gmp)/lib" @@ -8,4 +10,6 @@ if [ "$(uname -o)" = "Darwin" ] && [ "$(brew --prefix)" != "/usr/local" ]; then export CFLAGS="-I$(brew --prefix gmp)/include -I$(brew --prefix openssl)/include $CFLAGS" export LDFLAGS="-L$(brew --prefix gmp)/lib $LDFLAGS -L$(brew --prefix openssl)/lib $LDFLAGS" export CGO_LDFLAGS=$LDFLAGS + export LD_LIBRARY_PATH=$GITROOT/lib + export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH fi |