From 98cb90be77b541dad59af8e0c3add359bbe8e697 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Fri, 14 Sep 2018 20:00:42 +0200 Subject: [PATCH] update --- libraries/build_protobuf.sh | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/libraries/build_protobuf.sh b/libraries/build_protobuf.sh index 39dfd7a..edadb09 100755 --- a/libraries/build_protobuf.sh +++ b/libraries/build_protobuf.sh @@ -1,12 +1,5 @@ -cd protobuf -if [ -f build/src/.libs/libprotobuf.a ]; then - echo "protobuf already builded!" - exit 0 -fi -./autogen.sh -cd build -../configure -make -DCMAKE_CXX_FLAGS="${CXX_FLAGS}" -DCMAKE_C_FLAGS="${C_FLAGS}" ${MAKE_OPTIONS} -#make check +cd protobuf/build +cmake ../cmake/ -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_CXX_FLAGS="-std=c++11 -fPIC ${CXX_FLAGS}" -DCMAKE_C_FLAGS="${C_FLAGS}" ${CMAKE_OPTIONS} +make ${CMAKE_MAKE_OPTIONS} sudo make install sudo ldconfig