If unset, take default GOPATH from go env

pull/321/head
Eugene Kim 6 years ago
parent 18804ded81
commit 68594d8bd4
  1. 4
      scripts/setup_bls_build_flags.sh

@ -1,6 +1,8 @@
# no shebang; to be sourced from other scripts
HMY_PATH=$GOPATH/src/github.com/harmony-one
unset -v gopath
gopath=$(go env GOPATH)
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

Loading…
Cancel
Save