pthread.patch 671 B

123456789101112131415161718
  1. diff -Nur openal-soft-1.13-old//CMakeLists.txt openal-soft-1.13/CMakeLists.txt
  2. --- openal-soft-1.13-old//CMakeLists.txt 2011-04-15 10:39:56.860000093 +0300
  3. +++ openal-soft-1.13/CMakeLists.txt 2011-04-15 11:30:47.593000620 +0300
  4. @@ -246,10 +246,10 @@
  5. MESSAGE(FATAL_ERROR "No sleep function found!")
  6. ENDIF()
  7. - CHECK_C_COMPILER_FLAG(-pthread HAVE_PTHREAD)
  8. + CHECK_C_COMPILER_FLAG(-lpthread HAVE_PTHREAD)
  9. IF(HAVE_PTHREAD)
  10. - ADD_DEFINITIONS(-pthread)
  11. - SET(EXTRA_LIBS ${EXTRA_LIBS} -pthread)
  12. + ADD_DEFINITIONS(-lpthread)
  13. + SET(EXTRA_LIBS ${EXTRA_LIBS} -lpthread)
  14. ENDIF()
  15. # We need pthreads outside of Windows