Skip to content

Commit

Permalink
Support C11 threads from glibc (confluentinc#2220)
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhill committed Mar 4, 2019
1 parent 6eaee50 commit f263810
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions configure.self
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ function checks {
# -lrt is needed on linux for clock_gettime: link it if it exists.
mkl_lib_check "librt" "" cont CC "-lrt"

# pthreads required (even if C11 threads available) for rwlocks.
mkl_lib_check "libpthread" "" fail CC "-lpthread" \
"#include <pthread.h>"

# Use internal tinycthread if C11 threads not available
mkl_lib_check "c11threads" WITH_C11THREADS disable CC "" \
# Use internal tinycthread if C11 threads not available.
# Requires -lpthread on glibc c11 threads, thus the use of $LIBS.
mkl_lib_check "c11threads" WITH_C11THREADS disable CC "$LIBS" \
"
#include <threads.h>
Expand All @@ -64,10 +68,6 @@ void foo (void) {
}
"

# pthreads required (even if C11 threads available) for rwlocks
mkl_lib_check "libpthread" "" fail CC "-lpthread" \
"#include <pthread.h>"

# Check if dlopen() is available
mkl_lib_check "libdl" "WITH_LIBDL" disable CC "-ldl" \
"
Expand Down

0 comments on commit f263810

Please sign in to comment.