fix-pthread.patch 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. Index: apr-1.3.12/build/apr_threads.m4
  2. ===================================================================
  3. --- apr-1.3.12.orig/build/apr_threads.m4
  4. +++ apr-1.3.12/build/apr_threads.m4
  5. @@ -124,26 +124,6 @@ dnl pthreads_working variable to "yes" o
  6. dnl
  7. AC_DEFUN([APR_PTHREADS_CHECK], [
  8. -AC_CACHE_CHECK([for CFLAGS needed for pthreads], [apr_cv_pthreads_cflags],
  9. -[apr_ptc_cflags=$CFLAGS
  10. - for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
  11. - CFLAGS=$apr_ptc_cflags
  12. - test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
  13. - APR_PTHREADS_TRY_RUN([
  14. - apr_cv_pthreads_cflags="$flag"
  15. - break
  16. - ])
  17. - done
  18. - CFLAGS=$apr_ptc_cflags
  19. -])
  20. -
  21. -if test -n "$apr_cv_pthreads_cflags"; then
  22. - pthreads_working=yes
  23. - if test "x$apr_cv_pthreads_cflags" != "xnone"; then
  24. - APR_ADDTO(CFLAGS,[$apr_cv_pthreads_cflags])
  25. - fi
  26. -fi
  27. -
  28. # The CFLAGS may or may not be sufficient to ensure that libapr
  29. # depends on the pthreads library: some versions of libtool
  30. # drop -pthread when passed on the link line; some versions of