Commit b82bd31c authored by Emil Velikov's avatar Emil Velikov Committed by Emil Velikov require pthread-stubs only where available

The project is a thing only for BSD platforms. Or in other words - for
any other platforms building/installing pthread-stubs results only in a
pthread-stub.pc file.

And even where it provides a DSO, there's a fundamental design issue
with it - see the pthread-stubs mailing list for the specifics.

v2: Update comment above the switch statement (Jon Turney).
Reviewed-by: default avatarJeremy Huddleston Sequoia <>
Acked-by: default avatarGary Wong <>
Tested-by: default avatarEric Engestrom <>
Acked-by: default avatarRandy Fishel <>
Cc: Niveditha Rau <>
Signed-off-by: default avatarEmil Velikov <>
parent 9aebdb5d
......@@ -801,9 +801,10 @@ if test "x$android" = xno; then
test -z "$PTHREAD_LIBS" && PTHREAD_LIBS="-lpthread"
dnl pthread-stubs is mandatory on targets where it exists
dnl pthread-stubs is mandatory on BSD platforms, due to the nature of the
dnl project. Even then there's a notable issue as described in the project README
case "$host_os" in
cygwin* )
linux* | cygwin* | darwin* | solaris* | gnu*)
* )
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment