CMake: fix libpthread linking

2012-06-12 Thread David Coppa
Hi! The diff below makes devel/llvm correctly link with '-pthread', instead of '-lpthread'. More generally, it should fix all the ports that uses CHECK_LIBRARY_EXISTS(pthread pthread_mutex_blahblah blahblahblah...) once and for all. Thoughts? Index: Makefile

CMake: fix libpthread linking (2nd try)

2012-06-12 Thread David Coppa
Fix the corner case when you need to link with a library called libpthreadsomething, like libpthread-stubs for example... ---8--- Index: Makefile === RCS file: /cvs/ports/devel/cmake/Makefile,v retrieving revision 1.55 diff -u -p