This repo demonstrates how to build and use static libraries for leveldb with snappy. Just "make" and ./test.