summarylogtreecommitdiffstats
path: root/0002-Remove-lpthread.patch
blob: 67cbab5fce13fdaec4d640870fdea019f3c25504 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/configure
+++ b/configure
@@ -1049,9 +1049,9 @@
             cc_check pthread.h -lc "pthread_create(0,0,0,0);" && thread="posix" && libpthread="-lc"
             ;;
         *)
-            if cc_check pthread.h -lpthread "pthread_create(0,0,0,0);" ; then
+            if cc_check pthread.h "" "pthread_create(0,0,0,0);" ; then
                thread="posix"
-               libpthread="-lpthread"
+               libpthread=""
             else
                 cc_check pthread.h "" "pthread_create(0,0,0,0);" && thread="posix" && libpthread=""
             fi