Skip to contentSkip to conversation

Set PTHREADLIBS to "-lpthreadGC2" for MinGW

PATCH Superseded Sebastian Herbszt 1 participant 1 message Apr 26, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Set PTHREADLIBS to "-lpthreadGC2" for MinGW

MinGW with pthreads-w32 requires "-lpthreadGC2" instead of "-lpthread".

configure renamed from configure.orig +3 -0
@@ -1143,6 +1143,9 @@
   if $cc $ARCH_CFLAGS -o $TMPE $PTHREADLIBS $TMPC 2> /dev/null ; then
     pthread=yes
     PTHREADLIBS="-lpthread"
+    if test "$mingw32" = "yes" ; then
+      PTHREADLIBS="-lpthreadGC2"
+    fi
   fi
 fi