lpthread.patch 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. diff -Nur xine-lib-1.1.19-old//m4/pthreads.m4 xine-lib-1.1.19/m4/pthreads.m4
  2. --- xine-lib-1.1.19-old//m4/pthreads.m4 2010-09-04 18:26:52.719999251 +0300
  3. +++ xine-lib-1.1.19/m4/pthreads.m4 2010-09-04 18:28:15.110999847 +0300
  4. @@ -15,7 +15,7 @@
  5. AC_ARG_VAR([PTHREAD_CFLAGS], [C compiler flags for Pthread support])
  6. AC_ARG_VAR([PTHREAD_LIBS], [linker flags for Pthread support])
  7. - dnl if PTHREAD_* are not set, default to -pthread (GCC)
  8. + dnl if PTHREAD_* are not set, default to -lpthread (GCC)
  9. if test "${PTHREAD_CFLAGS-unset}" = "unset"; then
  10. case $host in
  11. *-mingw*) PTHREAD_CFLAGS="" ;;
  12. @@ -25,7 +25,7 @@
  13. dnl Handle Sun Studio compiler (also on Linux)
  14. CC_CHECK_CFLAGS([-mt], [PTHREAD_CFLAGS="-mt"]);;
  15. - *) PTHREAD_CFLAGS="-pthread" ;;
  16. + *) PTHREAD_CFLAGS="-lpthread" ;;
  17. esac
  18. fi
  19. if test "${PTHREAD_LIBS-unset}" = "unset"; then
  20. @@ -36,7 +36,7 @@
  21. *-solaris*)
  22. dnl Use the same libraries for gcc and Sun Studio cc
  23. PTHREAD_LIBS="-lpthread -lposix4 -lrt";;
  24. - *) PTHREAD_LIBS="-pthread" ;;
  25. + *) PTHREAD_LIBS="-lpthread" ;;
  26. esac
  27. dnl Again, handle Sun Studio compiler