summary refs log tree commit diff stats
path: root/lib/std
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/typedthreads.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/typedthreads.nim b/lib/std/typedthreads.nim
index 8359ca353..6cc5dd9e0 100644
--- a/lib/std/typedthreads.nim
+++ b/lib/std/typedthreads.nim
@@ -34,6 +34,10 @@
 ##
 ##  deinitLock(L)
 
+
+when defined(windows) and defined(gcc) and (not compileOption("tlsEmulation")):
+  {.passl: "-Wl,-Bstatic -lpthread -Wl,-Bdynamic".}
+
 import std/private/[threadtypes]
 export Thread