blob: d1939a599ce33aa9c0561c5295edfa05f9ec55f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# 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"
export BLS384_SLIB_LDFLAGS="-L$(brew --prefix gmp)/lib"
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
|