Commit fa086c8a authored by Jisi Liu's avatar Jisi Liu

First try static linking pthread

parent eaeca0d4
...@@ -215,8 +215,11 @@ fi ...@@ -215,8 +215,11 @@ fi
# Statically link libgcc and libstdc++. # Statically link libgcc and libstdc++.
# -s to produce stripped binary. # -s to produce stripped binary.
# And they don't work under Mac. if [[ "$OS" == windows && "$ARCH" == x86_64 ]]; then
if [[ "$OS" != osx ]]; then # Also static link libpthread required by mingw64
LDFLAGS="$LDFLAGS -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -s"
elif [[ "$OS" != osx ]]; then
# And they don't work under Mac.
LDFLAGS="$LDFLAGS -static-libgcc -static-libstdc++ -s" LDFLAGS="$LDFLAGS -static-libgcc -static-libstdc++ -s"
fi fi
......
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