Server-Root/libraries/build_protobuf.sh
2018-11-17 17:16:40 +01:00

8 lines
242 B
Bash
Executable File

cd protobuf
git checkout 3.5.1.1
cd 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