From: Rob Clark Date: Mon, 11 Mar 2013 17:21:25 +0000 (-0400) Subject: gui: Link against pthread. X-Git-Url: https://git.cworth.org/git?p=apitrace;a=commitdiff_plain;h=1c3144b7f0d37ae3909bd1a854ede6a0aa3ea20d gui: Link against pthread. /usr/bin/ld: CMakeFiles/qapitrace.dir/apitracecall.cpp.o: undefined reference to symbol '__pthread_key_create@@GLIBC_2.2.5' /usr/bin/ld: note: '__pthread_key_create@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line /lib64/libpthread.so.0: could not read symbols: Invalid operation Signed-off-by: José Fonseca --- diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index 773d344..03e3d39 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -80,6 +80,7 @@ target_link_libraries (qapitrace ${SNAPPY_LIBRARIES} ${QJSON_LIBRARIES} ${QT_LIBRARIES} + ${CMAKE_THREAD_LIBS_INIT} ) if (APPLE)