set ledisdb root dir to gopath in dev.sh

This commit is contained in:
siddontang 2014-05-14 17:09:47 +08:00
parent 4377c09bb2
commit ae76f1db41
1 changed files with 2 additions and 0 deletions

2
dev.sh
View File

@ -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"