mirror of https://github.com/siddontang/go.git
update leveldb build bash
This commit is contained in:
parent
2f02d5d6e2
commit
7589d8c9c0
|
@ -5,6 +5,8 @@
|
||||||
#install leveldb and snappy
|
#install leveldb and snappy
|
||||||
|
|
||||||
#you must set your own snappy and leveldb source directory
|
#you must set your own snappy and leveldb source directory
|
||||||
|
#snappy https://drive.google.com/file/d/0B0xs9kK-b5nMOWIxWGJhMXd6aGs/edit?usp=sharing
|
||||||
|
#leveldb https://leveldb.googlecode.com/files/leveldb-1.15.0.tar.gz
|
||||||
SNAPPY_SRC=./snappy
|
SNAPPY_SRC=./snappy
|
||||||
LEVELDB_SRC=./leveldb
|
LEVELDB_SRC=./leveldb
|
||||||
|
|
||||||
|
@ -30,7 +32,7 @@ if [ ! -f $LEVELDB_DIR/lib/libleveldb.a ]; then
|
||||||
mkdir -p $LEVELDB_DIR/include/leveldb && \
|
mkdir -p $LEVELDB_DIR/include/leveldb && \
|
||||||
install include/leveldb/*.h $LEVELDB_DIR/include/leveldb && \
|
install include/leveldb/*.h $LEVELDB_DIR/include/leveldb && \
|
||||||
mkdir -p $LEVELDB_DIR/lib && \
|
mkdir -p $LEVELDB_DIR/lib && \
|
||||||
cp -af libleveldb.* $LEVELDB_DIR/lib)
|
cp -f libleveldb.* $LEVELDB_DIR/lib)
|
||||||
else
|
else
|
||||||
echo "skip install leveldb"
|
echo "skip install leveldb"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue