build.sh中为make增加了多线程编译参数
diff --git a/build.sh b/build.sh
index 8624bce..2581d91 100755
--- a/build.sh
+++ b/build.sh
@@ -176,7 +176,7 @@
if [ $? -ne 0 ];then
exit 1
fi
- make
+ make -j
if [ $? -ne 0 ];then
exit 1
fi
@@ -214,7 +214,7 @@
if [ $? -ne 0 ];then
exit 1
fi
- make
+ make -j
if [ $? -ne 0 ];then
exit 1
fi
@@ -255,7 +255,7 @@
fi
echo "build boost static #####################"
pwd
- ./b2 cflags=-fPIC cxxflags=-fPIC --with-atomic --with-thread --with-system --with-chrono --with-date_time --with-log --with-regex --with-serialization --with-filesystem --with-locale --with-iostreams threading=multi link=static release install --prefix=${install_lib_dir}
+ ./b2 -j10 cflags=-fPIC cxxflags=-fPIC --with-atomic --with-thread --with-system --with-chrono --with-date_time --with-log --with-regex --with-serialization --with-filesystem --with-locale --with-iostreams threading=multi link=static release install --prefix=${install_lib_dir}
if [ $? -ne 0 ];then
exit 1
fi
@@ -269,7 +269,7 @@
else
cmake .. -DRUN_UNIT_TEST=ON
fi
- make
+ make -j
if [ $? -ne 0 ];then
exit 1
fi
@@ -307,7 +307,7 @@
if [ $? -ne 0 ];then
exit 1
fi
- make
+ make -j
if [ $? -ne 0 ];then
exit 1
fi