|
|
|
@ -33,20 +33,20 @@ dirnames() { |
|
|
|
|
-e 's:^\./::' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
go_dirs="${tmpdir}/go_dirs.txt" |
|
|
|
|
dirnames < "${go_files}" | sort -u -t/ > "${go_dirs}" |
|
|
|
|
|
|
|
|
|
export CGO_CFLAGS="-I$PWD/../bls/include -I$PWD/../mcl/include" |
|
|
|
|
export CGO_LDFLAGS="-L$PWD/../bls/lib" |
|
|
|
|
export LD_LIBRARY_PATH=$PWD/../bls/lib:$PWD/../mcl/lib |
|
|
|
|
HMY_PATH=$GOPATH/src/github.com/harmony-one |
|
|
|
|
export CGO_CFLAGS="-I$HMY_PATH/bls/include -I$HMY_PATH/mcl/include" |
|
|
|
|
export CGO_LDFLAGS="-L$HMY_PATH/bls/lib" |
|
|
|
|
export LD_LIBRARY_PATH=$HMY_PATH/bls/lib:$HMY_PATH/mcl/lib |
|
|
|
|
|
|
|
|
|
OS=$(uname -s) |
|
|
|
|
case $OS in |
|
|
|
|
Darwin) |
|
|
|
|
export CGO_CFLAGS="-I$PWD/../bls/include -I$PWD/../mcl/include -I/usr/local/opt/openssl/include" |
|
|
|
|
export CGO_LDFLAGS="-L$PWD/../bls/lib -L/usr/local/opt/openssl/lib" |
|
|
|
|
export LD_LIBRARY_PATH=$PWD/../bls/lib:$PWD/../mcl/lib:/usr/local/opt/openssl/lib |
|
|
|
|
export CGO_CFLAGS="-I$HMY_PATH/bls/include -I$HMY_PATH/mcl/include -I/usr/local/opt/openssl/include" |
|
|
|
|
export CGO_LDFLAGS="-L$HMY_PATH/bls/lib -L/usr/local/opt/openssl/lib" |
|
|
|
|
export LD_LIBRARY_PATH=$HMY_PATH/bls/lib:$HMY_PATH/mcl/lib:/usr/local/opt/openssl/lib |
|
|
|
|
export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH |
|
|
|
|
;; |
|
|
|
|
esac |
|
|
|
|