summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Armstrong <superna9999@gmail.com>2014-05-26 15:21:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-26 16:00:25 +0200
commit99d742aac41bf613e0b797b1f809040c9b426536 (patch)
tree47cbf528c3b81ebff2a719ef07567f7208aada85
parent86ae0da60c46658c91b11763557a9bbc1745c8b7 (diff)
configure: uClibc native pthread requires -ldl
In the configure script, add a pthread detection with -ldl added to cflags, because uClibc requires -ldl to link with native libpthread. Tested with a custom ARM toolchain with uClibc 0.9.33.2 and gcc 4.6.3. Signed-off-by: Neil Armstrong <narmstrong@neotion.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index fae2f77263..b920ddea1c 100755
--- a/configure
+++ b/configure
@@ -4593,6 +4593,9 @@ if ! disabled pthreads && ! enabled w32threads && ! enabled os2threads; then
elif check_func pthread_join -pthreads && check_func pthread_create -pthreads; then
add_cflags -pthreads
add_extralibs -pthreads
+ elif check_func pthread_join -ldl -pthread && check_func pthread_create -ldl -pthread; then
+ add_cflags -ldl -pthread
+ add_extralibs -ldl -pthread
elif check_func pthread_join -lpthreadGC2 && check_func pthread_create -lpthreadGC2; then
add_extralibs -lpthreadGC2
elif check_lib pthread.h pthread_join -lpthread && check_lib pthread.h pthread_create -lpthread; then