[kde-freebsd] [SVN Commit] area51/PORTS/Mk

Raphael Kubo da Costa kubito at gmail.com
Mon Apr 11 05:41:39 CEST 2011


SVN commit 7162 by rakuco:

bsd.cmake.mk: Experiment with not passing -DTHREADS_HAVE_PTHREAD_ARG.

This should help fix the build with the new strigi (and the old one
without the patches).

strigi calls CMake's FindThreads, which performs some checks for
pthread_create and how to link to pthread, and then uses the value
CMake sets for CMAKE_HAVE_PTHREAD_CREATE in its strigi_thread.h, which
only works when CMAKE_HAVE_PTHREAD_CREATE is true.

However, the check which sets CMAKE_HAVE_PTHREAD_CREATE in CMake's
FindThreads is only performed when THREADS_HAVE_PTHREAD_ARG is not
set.

Since pthread_create(3) also suggests -lpthread instead of -pthread, I
don't see much point in passing this definition to CMake as we were
doing so far.

Here be dragons!



 M  +1 -2      bsd.cmake.mk  




More information about the kde-freebsd mailing list