Skip to content

Commit

Permalink
added compilation of snappy to compile script
Browse files Browse the repository at this point in the history
  • Loading branch information
arnimarj@gmail.com committed Nov 21, 2011
1 parent ac64ffa commit ed9cbbd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion compile_leveldb.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
#!/bin/sh

(cd leveldb-read-only; make OPT='-fPIC -O2 -DNDEBUG')
(
cd snappy-read-only;
./autogen.sh;
./configure --enable-shared=no --enable-static=yes;
make clean;
make CXXFLAGS='-g -O2 -fPIC';
)

(
cd leveldb-read-only;
make clean;
make OPT='-fPIC -O2 -DNDEBUG -DSNAPPY -I../snappy-read-only' SNAPPY_CFLAGS=''
)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from distutils.core import setup, Extension

extra_compile_args = ['-I./leveldb-read-only/include', '-fPIC', '-pedantic', '-Wall', '-g2', '-D_GNU_SOURCE', '-O2', '-DNDEBUG']
extra_link_args = ['-L./leveldb-read-only', '-Bstatic', '-lleveldb']
extra_link_args = ['-L./leveldb-read-only', '-Bstatic', '-lleveldb', '-L./snappy-read-only/.libs/', '-Bstatic', '-lsnappy']

setup(
name = 'leveldb',
Expand Down

0 comments on commit ed9cbbd

Please sign in to comment.