This commit is contained in:
WolverinDEV 2018-09-14 20:00:42 +02:00
parent e6145e43d8
commit 98cb90be77

View File

@ -1,12 +1,5 @@
cd protobuf cd protobuf/build
if [ -f build/src/.libs/libprotobuf.a ]; then cmake ../cmake/ -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_CXX_FLAGS="-std=c++11 -fPIC ${CXX_FLAGS}" -DCMAKE_C_FLAGS="${C_FLAGS}" ${CMAKE_OPTIONS}
echo "protobuf already builded!" make ${CMAKE_MAKE_OPTIONS}
exit 0
fi
./autogen.sh
cd build
../configure
make -DCMAKE_CXX_FLAGS="${CXX_FLAGS}" -DCMAKE_C_FLAGS="${C_FLAGS}" ${MAKE_OPTIONS}
#make check
sudo make install sudo make install
sudo ldconfig sudo ldconfig