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
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