OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b74eead
)
configure: check that pthreads is compatible with compiler.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 29 Dec 2013 23:47:12 +0000
(
00:47
+0100)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Mon, 30 Dec 2013 11:38:04 +0000
(12:38 +0100)
In particular the mutex initialization for example won't actually
compile with e.g. gcc 2.95.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
configure
patch
|
blob
|
history
diff --git
a/configure
b/configure
index
2604ae7
..
de2d87a
100755
(executable)
--- a/
configure
+++ b/
configure
@@
-4359,6
+4359,7
@@
if ! disabled pthreads && ! enabled w32threads && ! enabled os2threads; then
elif ! check_func pthread_join && ! check_func pthread_create; then
disable pthreads
fi
+ check_code cc "pthread.h" "static pthread_mutex_t atomic_lock = PTHREAD_MUTEX_INITIALIZER" || disable pthreads
fi
for thread in $THREADS_LIST; do