Protocol Buffers - Google's data interchange format (grpc依赖) https://developers.google.com/protocol-buffers/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
581 B

#!/bin/bash
# Override the default value set in configure.ac that has '-g' which produces
# huge binary.
export CXXFLAGS="-DNDEBUG"
# Statically link libgcc and libstdc++.
# -s to produce stripped binary
export LDFLAGS="-static-libgcc -static-libstdc++ -s"
# Under Cygwin we use MinGW GCC because the executable produced by Cygwin GCC
# depends on Cygwin DLL.
if [[ "$(uname)" == CYGWIN* ]]; then
export CC=i686-pc-mingw32-gcc
export CXX=i686-pc-mingw32-c++
export CXXCPP=i686-pc-mingw32-cpp
fi
cd $(dirname "$0")/.. && ./configure --disable-shared && make clean && make