Server-Root/libraries/build_protobuf.sh
2019-10-13 18:52:17 +02:00

8 lines
278 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}" -DCMAKE_BUILD_TYPE=RelWithDebInfo ${CMAKE_OPTIONS}
make ${CMAKE_MAKE_OPTIONS}
sudo make install
#sudo ldconfig