diff -r b3d3ef1e15b5 cmake/sdlchecks.cmake --- a/cmake/sdlchecks.cmake Mon Jan 14 20:20:33 2013 -0300 +++ b/cmake/sdlchecks.cmake Fri Jan 18 11:41:45 2013 +0800 @@ -551,7 +551,7 @@ if(PTHREADS) if(LINUX) set(PTHREAD_CFLAGS "-D_REENTRANT") - set(PTHREAD_LDFLAGS "-lpthread") + set(PTHREAD_LDFLAGS "-pthread") elseif(BSDI) set(PTHREAD_CFLAGS "-D_REENTRANT -D_THREAD_SAFE") set(PTHREAD_LDFLAGS "") @@ -624,7 +624,8 @@ if(PTHREADS_SEM) check_c_source_compiles("#include - #include " HAVE_PTHREADS_SEM) + #include + int main(int argc, char **argv) {}" HAVE_PTHREADS_SEM) if(HAVE_PTHREADS_SEM) check_c_source_compiles(" #include