]> git.cworth.org Git - apitrace/commitdiff
gui: Link against pthread.
authorRob Clark <robdclark@gmail.com>
Mon, 11 Mar 2013 17:21:25 +0000 (13:21 -0400)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 11 Mar 2013 21:35:05 +0000 (21:35 +0000)
/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 <jfonseca@vmware.com>
gui/CMakeLists.txt

index 773d344549462fba25f4d403121ba42942b52ecc..03e3d39ce78c2d1ecd1310957bbcbd94a8410b0d 100644 (file)
@@ -80,6 +80,7 @@ target_link_libraries (qapitrace
     ${SNAPPY_LIBRARIES}
     ${QJSON_LIBRARIES}
     ${QT_LIBRARIES}
+    ${CMAKE_THREAD_LIBS_INIT}
 )
 
 if (APPLE)