Windows: add CONFIG_TLS_THREAD=y and swap pthreadGC2 to libwinpthread-1.
authorBruce Cran <bcran@fusionio.com>
Thu, 7 Nov 2013 14:04:00 +0000 (14:04 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Nov 2013 15:28:52 +0000 (08:28 -0700)
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 <axboe@kernel.dk>
configure
os/windows/install.wxs

index ef7be0180258abecd4703ebfcf4ed63625d6392f..0f1acd0b78e125f1d1d2301ff14d3b21eee6201e 100755 (executable)
--- 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
index ac145bcc51be5b49c683632092755d47b81a6256..adc50f65844b488b23d7da1bcfc4134312a66029 100755 (executable)
@@ -27,7 +27,7 @@
                                                        <File Source="..\..\fio.exe"/>
                                                </Component>
                                                <Component>
-                                                       <File KeyPath="yes" Source="..\..\pthreadGC2.dll"/>
+                                                       <File KeyPath="yes" Source="..\..\libwinpthread-1.dll"/>
                                                </Component>
                                                <Component>
                                                        <File Id="README" Name="README.txt" Source="..\..\README"/>