From 0ff17bebb065464446cc4ada4ab390e0566bc5d7 Mon Sep 17 00:00:00 2001 From: Eugene Kim Date: Fri, 25 Jan 2019 16:56:23 -0800 Subject: [PATCH] Use the first element of GOPATH for the src dir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See “go help gopath-get” for details. --- scripts/setup_bls_build_flags.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup_bls_build_flags.sh b/scripts/setup_bls_build_flags.sh index cdff751c0..ff94f3aec 100644 --- a/scripts/setup_bls_build_flags.sh +++ b/scripts/setup_bls_build_flags.sh @@ -2,7 +2,7 @@ unset -v gopath gopath=$(go env GOPATH) -HMY_PATH="${gopath}/src/github.com/harmony-one" +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