[kde-freebsd] kdelibs-4.4.3/kjs/CMakeLists.txt

Dima Panov fluffy at fluffy.khv.ru
Wed Jun 2 03:26:59 CEST 2010


On Wednesday 02 June 2010 02:34:06 Andriy Gapon wrote:
> 
> Could someone with cmake-fu please take a look at kdelibs-4.4.3/kjs/CMakeLists.txt ?
> I am getting unresolved pthread-related symbols there if building the port with gcc44.
> It seems that libkjs.so can conditionally call pthread functions (see
> collector.cpp), but kjs binary is always linked without any thread flags (e.g.
> -pthread).

I've playing with this patch for now. It should be enough for any non-default compiler.

====================
--- ./kjs/CMakeLists.txt.orig	2009-05-04 13:34:01.000000000 +0200
+++ ./kjs/CMakeLists.txt	2009-05-04 13:34:07.000000000 +0200
@@ -220,7 +220,7 @@
 
 set_target_properties(kjs_bin PROPERTIES OUTPUT_NAME kjs)
 
-target_link_libraries(kjs_bin ${KJSLIBNAME})
+target_link_libraries(kjs_bin ${KJSLIBNAME} pthread)
 
 install(TARGETS kjs_bin ${INSTALL_TARGETS_DEFAULT_ARGS})
 
====================

Test it in your environment

-- 
Dima "Red Fox" Panov @ Home | C73E 2B72 1FFD 61BD E206 1234 A626 76ED 93E3 B018
Khabarovsk, Russia          | 2D30 2CCB 9984 130C 6F87 BAFC FB8B A09D D539 8F29
KDE at FreeBSD Team | FreeBSD committer since 10.08.2009 | FreeBSD since Sept 1995
Twitter.com:fluffy_khv | Skype: dima.panov | Jabber.org/GTalk/QIP.ru:fluffy.khv


More information about the kde-freebsd mailing list