File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,13 @@ function checks {
43
43
# -lrt is needed on linux for clock_gettime: link it if it exists.
44
44
mkl_lib_check " librt" " " cont CC " -lrt"
45
45
46
+ # pthreads required (even if C11 threads available) for rwlocks.
47
+ mkl_lib_check " libpthread" " " fail CC " -lpthread" \
48
+ " #include <pthread.h>"
46
49
47
- # Use internal tinycthread if C11 threads not available
48
- mkl_lib_check " c11threads" WITH_C11THREADS disable CC " " \
50
+ # Use internal tinycthread if C11 threads not available.
51
+ # Requires -lpthread on glibc c11 threads, thus the use of $LIBS.
52
+ mkl_lib_check " c11threads" WITH_C11THREADS disable CC " $LIBS " \
49
53
"
50
54
#include <threads.h>
51
55
@@ -64,10 +68,6 @@ void foo (void) {
64
68
}
65
69
"
66
70
67
- # pthreads required (even if C11 threads available) for rwlocks
68
- mkl_lib_check " libpthread" " " fail CC " -lpthread" \
69
- " #include <pthread.h>"
70
-
71
71
# Check if dlopen() is available
72
72
mkl_lib_check " libdl" " WITH_LIBDL" disable CC " -ldl" \
73
73
"
You can’t perform that action at this time.
0 commit comments