From 7d6be13abb5155045cd8b6bcd8a50fea5391a741 Mon Sep 17 00:00:00 2001 From: Bruce Cran Date: Thu, 7 Nov 2013 14:04:00 +0000 Subject: [PATCH 1/1] Windows: add CONFIG_TLS_THREAD=y and swap pthreadGC2 to libwinpthread-1. Since GCC 4.4, MinGW has supported TLS via the __thread keyword, so generate config-host.mak with CONFIG_TLS_THREAD=y. MinGW now uses a new threading library libwinpthread-1.dll: install it instead of pthreadGC2.dll. Signed-off-by: Jens Axboe --- configure | 1 + os/windows/install.wxs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index ef7be018..0f1acd0b 100755 --- a/configure +++ b/configure @@ -243,6 +243,7 @@ CYGWIN*) output_sym "CONFIG_CLOCK_GETTIME" output_sym "CONFIG_SCHED_IDLE" output_sym "CONFIG_TCP_NODELAY" + output_sym "CONFIG_TLS_THREAD" echo "CC=$CC" >> $config_host_mak echo "BUILD_CFLAGS=$CFLAGS -include config-host.h -D_GNU_SOURCE" >> $config_host_mak exit 0 diff --git a/os/windows/install.wxs b/os/windows/install.wxs index ac145bcc..adc50f65 100755 --- a/os/windows/install.wxs +++ b/os/windows/install.wxs @@ -27,7 +27,7 @@ - + -- 2.25.1