diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-08-08 09:56:51 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-08-08 09:56:51 -0400 |
commit | 7a570b818246ca8c8efe4b7de116804f6ebddd91 (patch) | |
tree | 669d0e601479b9fc3836486bdf39013bd1ffb70b /configure.ac | |
parent | 27a2a6cb9b8a590a88c479539efae7bd31a4102f (diff) | |
download | tor-7a570b818246ca8c8efe4b7de116804f6ebddd91.tar.gz tor-7a570b818246ca8c8efe4b7de116804f6ebddd91.zip |
Don't search for -lpthread on Windows
If we're building for Windows, we want to use windows threads no
matter what, and we don't want to link a pthread library even if it
is present. Fixes bug 27081; bugfix on 1790dc67607799a in 0.1.0.1-rc.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index d700329925..76b3f423ae 100644 --- a/configure.ac +++ b/configure.ac @@ -370,8 +370,10 @@ if test "$LIBS" != "$saved_LIBS"; then have_rt=yes fi -AC_SEARCH_LIBS(pthread_create, [pthread]) -AC_SEARCH_LIBS(pthread_detach, [pthread]) +if test "$bwin32" = "false"; then + AC_SEARCH_LIBS(pthread_create, [pthread]) + AC_SEARCH_LIBS(pthread_detach, [pthread]) +fi AM_CONDITIONAL(THREADS_WIN32, test "$bwin32" = "true") AM_CONDITIONAL(THREADS_PTHREADS, test "$bwin32" = "false") |