From ae76f1db412c77124a578f97d8e8436c6f34436b Mon Sep 17 00:00:00 2001 From: siddontang Date: Wed, 14 May 2014 17:09:47 +0800 Subject: [PATCH] set ledisdb root dir to gopath in dev.sh --- dev.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev.sh b/dev.sh index 0454841..3fee497 100644 --- a/dev.sh +++ b/dev.sh @@ -26,6 +26,8 @@ function add_path() fi } +export GOPATH=$(add_path $GOPATH $VTROOT) + export CGO_CFLAGS="-I$LEVELDB_DIR/include -I$SNAPPY_DIR/include" export CGO_CXXFLAGS="-I$LEVELDB_DIR/include -I$SNAPPY_DIR/include" export CGO_LDFLAGS="-L$LEVELDB_DIR/lib -L$SNAPPY_DIR/lib -lsnappy"