Signed-off-by: geraldo netto <geraldone...@gmail.com>
---
 leveldb/GET | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/leveldb/GET b/leveldb/GET
index 01b6560..a5a2733 100755
--- a/leveldb/GET
+++ b/leveldb/GET
@@ -4,6 +4,7 @@ VERSION=1.15
 TARBALL=v$VERSION.tar.gz
 SRCDIR=leveldb-$VERSION
 LIBSNAPPY=/lib64/libsnappy.so.1
+NCPUS="$(grep -c ^proc /proc/cpuinfo)"
 wget -c https://github.com/google/leveldb/archive/$TARBALL
 rm -rf $SRCDIR leveldb
 tar zxf $TARBALL
@@ -11,8 +12,8 @@ mv $SRCDIR leveldb
 
 cd leveldb
 patch -p1 < ../patch.diff
-make
-make db_bench
+make -j$NCPUS
+make -j$NCPUS db_bench
 cp -vf db_bench ../db_bench.so
 cp -vf libleveldb.so.$VERSION ..
 cd ..
-- 
2.7.4

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to