no-pthread.diff 677 B

1234567891011121314
  1. Index: djvulibre-3.5.22/config/acinclude.m4
  2. ===================================================================
  3. --- djvulibre-3.5.22.orig/config/acinclude.m4
  4. +++ djvulibre-3.5.22/config/acinclude.m4
  5. @@ -408,7 +408,7 @@ case "${host_os}-${GCC}" in
  6. # On Linux/GCC, libtool uses -nostdlib for linking, which cancel part
  7. # of the -pthread flag effect (libpthread is not automatically linked).
  8. # So we'll try to link with both -pthread and -lpthread first:
  9. - acx_pthread_flags="-pthread:pthread $acx_pthread_flags"
  10. + acx_pthread_flags="-lpthread -pthread:pthread $acx_pthread_flags"
  11. ;;
  12. esac
  13. if test x"$acx_pthread_ok" = xno; then