diff options
author | Kun Zhang <zhangkun@google.com> | 2015-03-31 16:28:57 -0700 |
---|---|---|
committer | Kun Zhang <zhangkun@google.com> | 2015-03-31 16:28:57 -0700 |
commit | e4f1f933137f8231cdf8def6bc9231653de7d36f (patch) | |
tree | 4997325ad52e3d07a7d97d263e04e22762d94450 /protoc-artifacts | |
parent | 36093ca45e544bb92ec67962130aaea31aa7c9d1 (diff) | |
download | protobuf-e4f1f933137f8231cdf8def6bc9231653de7d36f.tar.gz protobuf-e4f1f933137f8231cdf8def6bc9231653de7d36f.tar.bz2 protobuf-e4f1f933137f8231cdf8def6bc9231653de7d36f.zip |
Stop calling strip, pass -s to linker instead
Diffstat (limited to 'protoc-artifacts')
-rwxr-xr-x | protoc-artifacts/build-protoc.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protoc-artifacts/build-protoc.sh b/protoc-artifacts/build-protoc.sh index 8293311a..8233c64d 100755 --- a/protoc-artifacts/build-protoc.sh +++ b/protoc-artifacts/build-protoc.sh @@ -4,8 +4,9 @@ # huge binary. export CXXFLAGS="-DNDEBUG" -# Statically link libgcc and libstdc++ -export LDFLAGS="-static-libgcc -static-libstdc++" +# 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. @@ -15,5 +16,4 @@ if [[ "$(uname)" == CYGWIN* ]]; then export CXXCPP=i686-pc-mingw32-cpp fi -cd $(dirname "$0")/.. && ./configure --disable-shared && make && - cd src && (strip protoc || strip protoc.exe) +cd $(dirname "$0")/.. && ./configure --disable-shared && make |