Commit e4f1f933 authored by Kun Zhang's avatar Kun Zhang

Stop calling strip, pass -s to linker instead

parent 36093ca4
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
# huge binary. # huge binary.
export CXXFLAGS="-DNDEBUG" export CXXFLAGS="-DNDEBUG"
# Statically link libgcc and libstdc++ # Statically link libgcc and libstdc++.
export LDFLAGS="-static-libgcc -static-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 # Under Cygwin we use MinGW GCC because the executable produced by Cygwin GCC
# depends on Cygwin DLL. # depends on Cygwin DLL.
...@@ -15,5 +16,4 @@ if [[ "$(uname)" == CYGWIN* ]]; then ...@@ -15,5 +16,4 @@ if [[ "$(uname)" == CYGWIN* ]]; then
export CXXCPP=i686-pc-mingw32-cpp export CXXCPP=i686-pc-mingw32-cpp
fi fi
cd $(dirname "$0")/.. && ./configure --disable-shared && make && cd $(dirname "$0")/.. && ./configure --disable-shared && make
cd src && (strip protoc || strip protoc.exe)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment