Hi,

the test for pthread_getattr_np() fails due to a missing '-pthread' in the 
linker flags (at least for cartman and myself). This prevents the compilation 
of kjs.

The attached patch seems to solve this problem. Is this the right way to fix 
it?

regards
Volker (who knows nothing about cmake)
Index: ConfigureChecks.cmake
===================================================================
--- ConfigureChecks.cmake	(revision 527776)
+++ ConfigureChecks.cmake	(working copy)
@@ -288,8 +288,10 @@
 check_function_exists(__argz_count    HAVE___ARGZ_COUNT)
 check_function_exists(__argz_next     HAVE___ARGZ_NEXT)
 check_function_exists(__argz_stringify HAVE___ARGZ_STRINGIFY)
+set(CMAKE_REQUIRED_LIBRARIES -pthread)
 check_function_exists(pthread_getattr_np HAVE_PTHREAD_GETATTR_NP)
 check_function_exists(pthread_attr_get_np HAVE_PTHREAD_ATTR_GET_NP)
+set(CMAKE_REQUIRED_LIBRARIES)
 
 
 check_library_exists(utempter addToUtmp "" HAVE_UTEMPTER)

Attachment: pgpZQH6tjsewu.pgp
Description: PGP signature

_______________________________________________
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem

Reply via email to