From d909834ec604998069c6bef5239563880aa125b7 Mon Sep 17 00:00:00 2001 From: Jisi Liu Date: Tue, 15 Aug 2017 13:15:37 -0700 Subject: static link for 32 bit build as well. --- protoc-artifacts/build-protoc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protoc-artifacts') diff --git a/protoc-artifacts/build-protoc.sh b/protoc-artifacts/build-protoc.sh index b008fec3..57523a41 100755 --- a/protoc-artifacts/build-protoc.sh +++ b/protoc-artifacts/build-protoc.sh @@ -213,7 +213,7 @@ fi # Statically link libgcc and libstdc++. # -s to produce stripped binary. -if [[ "$OS" == windows && "$ARCH" == x86_64 ]]; then +if [[ "$OS" == windows ]]; then # Also static link libpthread required by mingw64 LDFLAGS="$LDFLAGS -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -s" elif [[ "$OS" != osx ]]; then -- cgit v1.2.3