#ifdef EIO_STACKSIZE
# define XTHREAD_STACKSIZE EIO_STACKSIZE
#endif
-#ifdef _WIN32
-# define PTW32_STATIC_LIB 1
-#endif
+
+// For statically-linked pthreads-w32, use:
+// #ifdef _WIN32
+// # define PTW32_STATIC_LIB 1
+// #endif
#include "xthread.h"
#include <errno.h>
# Split off debug variant before adding variant specific defines
debug_env = conf.env.copy()
conf.set_env_name('debug', debug_env)
+
+ if (sys.platform.startswith("win32")):
+ # Static pthread - crashes
+ #conf.env.append_value('LINKFLAGS', '../deps/pthreads-w32/libpthreadGC2.a')
+ #debug_env.append_value('LINKFLAGS', '../deps/pthreads-w32/libpthreadGC2d.a')
+ # Pthread dll
+ conf.env.append_value('LIB', 'pthread.dll')
# Configure debug variant
conf.setenv('debug')