From 87b85019e613ec21299ad6cb2bbf43e41e014c92 Mon Sep 17 00:00:00 2001 From: Kun Zhang Date: Wed, 1 Apr 2015 18:02:36 -0700 Subject: Make it work on Mac --- protoc-artifacts/build-protoc.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'protoc-artifacts') diff --git a/protoc-artifacts/build-protoc.sh b/protoc-artifacts/build-protoc.sh index f8afa95a..90d9a8ef 100755 --- a/protoc-artifacts/build-protoc.sh +++ b/protoc-artifacts/build-protoc.sh @@ -85,8 +85,11 @@ fi export CXXFLAGS="-DNDEBUG" # Statically link libgcc and libstdc++. -# -s to produce stripped binary -export LDFLAGS="-static-libgcc -static-libstdc++ -s" +# -s to produce stripped binary. +# And they don't work under Mac. +if [[ "$OS" != osx ]]; then + export LDFLAGS="-static-libgcc -static-libstdc++ -s" +fi cd "$WORKING_DIR"/.. && ./configure $CONFIGURE_ARGS && cd src && make clean && make $MAKE_TARGET && -- cgit v1.2.3