diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2013-07-08 20:19:30 +0200 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2013-07-08 20:22:05 +0200 |
commit | 269b3f3d572a15f1007f8cc84f758b1a293ef8af (patch) | |
tree | 6c59e35fa1b05a652459a02dee2a6de7877d33c5 /m4 | |
parent | 40f857d27930aa002a99c96f3892c5e240e7ecb5 (diff) |
build: Make -lpthread take preference over -pthread
This makes libpoppler link to pthreads and fixes runtime error due to
unresolved pthread symbols when running some of the utils and tests.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ax_pthread.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/ax_pthread.m4 b/m4/ax_pthread.m4 index 6d400ed4..de0ab8f5 100644 --- a/m4/ax_pthread.m4 +++ b/m4/ax_pthread.m4 @@ -123,7 +123,7 @@ fi # which indicates that we try without any flags at all, and "pthread-config" # which is a program returning the flags for the Pth emulation library. -ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" +ax_pthread_flags="pthreads none -Kthread -kthread lthread pthread -pthread -pthreads -mthreads --thread-safe -mt pthread-config" # The ordering *is* (sometimes) important. Some notes on the # individual items follow: |