mirror of https://github.com/ledisdb/ledisdb.git
update build_leveldb
This commit is contained in:
parent
ae76f1db41
commit
4eeadc7389
|
@ -12,8 +12,9 @@ mkdir -p $BUILD_DIR
|
||||||
cd $BUILD_DIR
|
cd $BUILD_DIR
|
||||||
|
|
||||||
if [ ! -f $SNAPPY_DIR/lib/libsnappy.a ]; then
|
if [ ! -f $SNAPPY_DIR/lib/libsnappy.a ]; then
|
||||||
(git clone git@github.com:siddontang/snappy.git && \
|
(git clone https://github.com/siddontang/snappy.git && \
|
||||||
cd ./snappy && \
|
cd ./snappy && \
|
||||||
|
autoreconf --force --install && \
|
||||||
./configure --prefix=$SNAPPY_DIR && \
|
./configure --prefix=$SNAPPY_DIR && \
|
||||||
make && \
|
make && \
|
||||||
make install && \
|
make install && \
|
||||||
|
@ -25,7 +26,7 @@ fi
|
||||||
cd $BUILD_DIR
|
cd $BUILD_DIR
|
||||||
|
|
||||||
if [ ! -f $LEVELDB_DIR/lib/libleveldb.a ]; then
|
if [ ! -f $LEVELDB_DIR/lib/libleveldb.a ]; then
|
||||||
(git clone git@github.com:siddontang/leveldb.git && \
|
(git clone https://github.com/siddontang/leveldb.git && \
|
||||||
cd ./leveldb && \
|
cd ./leveldb && \
|
||||||
echo "echo \"PLATFORM_CFLAGS+=-I$SNAPPY_DIR/include\" >> build_config.mk" >> build_detect_platform &&
|
echo "echo \"PLATFORM_CFLAGS+=-I$SNAPPY_DIR/include\" >> build_config.mk" >> build_detect_platform &&
|
||||||
echo "echo \"PLATFORM_CXXFLAGS+=-I$SNAPPY_DIR/include\" >> build_config.mk" >> build_detect_platform &&
|
echo "echo \"PLATFORM_CXXFLAGS+=-I$SNAPPY_DIR/include\" >> build_config.mk" >> build_detect_platform &&
|
||||||
|
|
Loading…
Reference in New Issue