File: compile_leveldb.sh

package info (click to toggle)
python-leveldb 0~svn51-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 140 kB
  • sloc: cpp: 1,024; python: 211; sh: 74; makefile: 18
file content (19 lines) | stat: -rwxr-xr-x 413 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e;

(
	svn checkout http://snappy.googlecode.com/svn/trunk/ snappy-read-only;
	cd snappy-read-only;
	./autogen.sh;
	./configure --enable-shared=no --enable-static=yes;
	make clean;
	make CXXFLAGS='-g -O2 -fPIC';
)

(
	git clone https://code.google.com/p/leveldb/ || (cd leveldb; git pull);
	cd leveldb;
	make clean;
	make OPT='-fPIC -O2 -DNDEBUG -DSNAPPY -I../snappy-read-only' SNAPPY_CFLAGS=''
)