Commit fc8208ec authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

configure: always pass -pthread on Linux

This appears to be the official way to get POSIX threads. In practice,
it pre-defines _REENTRANT to 1 and pulls -lpthread.
(This works with both GCC and Clang.)
parent 963c21cc
......@@ -102,7 +102,7 @@ case "${host_os}" in
;;
linux*)
SYS=linux
test "${host_cpu}" = "riscv64" && CFLAGS="${CFLAGS} -pthread"
CFLAGS="${CFLAGS} -pthread"
;;
bsdi*)
SYS=bsdi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment