aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-11-29 09:29:12 -0800
committerLuca Barbato <lu_zero@gentoo.org>2013-11-30 13:01:35 +0100
commitf058f384a0d76bfd125f4738dceab7c890186432 (patch)
tree677472d2b6e3eb6bf745b9040426592eefe92825
parent01f6df01b6fdc2d71b82370374cde4bf102928c7 (diff)
downloadffmpeg-f058f384a0d76bfd125f4738dceab7c890186432.tar.gz
configure: Do not use pthread_create to check for pthread
Certain instrumentation addons leads to a false positive in configure and link failures at the end of the build phase. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rwxr-xr-xconfigure10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure b/configure
index 6135e8a779..832a54ae95 100755
--- a/configure
+++ b/configure
@@ -3800,17 +3800,17 @@ fi
# do this before the optional library checks as some of them require pthreads
if ! disabled pthreads && ! enabled w32threads; then
enable pthreads
- if check_func pthread_create; then
+ if check_func pthread_join; then
:
- elif check_func pthread_create -pthread; then
+ elif check_func pthread_join -pthread; then
add_cflags -pthread
add_extralibs -pthread
- elif check_func pthread_create -pthreads; then
+ elif check_func pthread_join -pthreads; then
add_cflags -pthreads
add_extralibs -pthreads
- elif check_func pthread_create -lpthreadGC2; then
+ elif check_func pthread_join -lpthreadGC2; then
add_extralibs -lpthreadGC2
- elif ! check_lib pthread.h pthread_create -lpthread; then
+ elif ! check_lib pthread.h pthread_join -lpthread; then
disable pthreads
fi
fi