From 1c3144b7f0d37ae3909bd1a854ede6a0aa3ea20d Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 11 Mar 2013 13:21:25 -0400 Subject: [PATCH] gui: Link against pthread. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit /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 --- gui/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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) -- 2.43.0