aboutsummaryrefslogtreecommitdiff
path: root/protoc-artifacts
diff options
context:
space:
mode:
authorJisi Liu <jisi.liu@gmail.com>2017-08-15 13:15:37 -0700
committerJisi Liu <jisi.liu@gmail.com>2017-08-15 13:15:37 -0700
commitd909834ec604998069c6bef5239563880aa125b7 (patch)
treedf66e5703f8a0a40e8061fc27449f96fa66d4c60 /protoc-artifacts
parentf7b3dd4329145403b7de78451523700a84e33291 (diff)
downloadprotobuf-d909834ec604998069c6bef5239563880aa125b7.tar.gz
protobuf-d909834ec604998069c6bef5239563880aa125b7.tar.bz2
protobuf-d909834ec604998069c6bef5239563880aa125b7.zip
static link for 32 bit build as well.
Diffstat (limited to 'protoc-artifacts')
-rwxr-xr-xprotoc-artifacts/build-protoc.sh2
1 files changed, 1 insertions, 1 deletions
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