summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-04-20 23:35:15 +0800
committerGitHub <noreply@github.com>2023-04-20 17:35:15 +0200
commitf9477396a6f21beaa8ffd3de19129b11fe7169f1 (patch)
tree21c8e4ac371662ca89c87af3320b6cb221f2d23e /config
parented7c6cdc984b12a30a44344167083ec0dc46cf9a (diff)
downloadNim-f9477396a6f21beaa8ffd3de19129b11fe7169f1.tar.gz
static link pthread correctly (#21693)
Diffstat (limited to 'config')
-rw-r--r--config/nim.cfg3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/nim.cfg b/config/nim.cfg
index a1559e24a..13665936b 100644
--- a/config/nim.cfg
+++ b/config/nim.cfg
@@ -179,6 +179,9 @@ nimblepath="$home/.nimble/pkgs/"
 # Configuration for the GNU C/C++ compiler:
 @if windows:
   #gcc.path = r"$nim\dist\mingw\bin"
+  @if gcc:
+    gcc.options.linker %= "-Wl,-Bstatic -lpthread"
+  @end
   @if tcc:
     tlsEmulation:on
   @end