Terje Rosten 688b170
diff --git a/kde/kioslave/kio_recoll-kde4/CMakeLists.txt b/kde/kioslave/kio_recoll-kde4/CMakeLists.txt
Terje Rosten 688b170
index 29435cf..9756691 100644
Terje Rosten 688b170
--- a/kde/kioslave/kio_recoll-kde4/CMakeLists.txt
Terje Rosten 688b170
+++ b/kde/kioslave/kio_recoll-kde4/CMakeLists.txt
Terje Rosten 688b170
@@ -60,7 +60,7 @@ add_custom_target(rcllib
Terje Rosten 688b170
 )
Terje Rosten 688b170
 add_dependencies(kio_recoll rcllib)
Terje Rosten 688b170
 
Terje Rosten 688b170
-target_link_libraries(kio_recoll recoll xapian xslt xml2 z ${EXTRA_LIBS} ${KDE4_KIO_LIBS})
Terje Rosten 688b170
+target_link_libraries(kio_recoll recoll xapian xslt xml2 z ${EXTRA_LIBS} ${KDE4_KIO_LIBS} X11)
Terje Rosten 688b170
 
Terje Rosten 688b170
 install(TARGETS kio_recoll DESTINATION ${PLUGIN_INSTALL_DIR})
Terje Rosten 688b170
 
Terje Rosten 688b170
diff --git a/kde/kioslave/kio_recoll/CMakeLists.txt b/kde/kioslave/kio_recoll/CMakeLists.txt
Terje Rosten 688b170
index ca10542..14f426f 100644
Terje Rosten 688b170
--- a/kde/kioslave/kio_recoll/CMakeLists.txt
Terje Rosten 688b170
+++ b/kde/kioslave/kio_recoll/CMakeLists.txt
Terje Rosten 688b170
@@ -85,6 +85,7 @@ xapian
Terje Rosten 688b170
 xslt
Terje Rosten 688b170
 xml2
Terje Rosten 688b170
 KF5::KIOCore
Terje Rosten 688b170
+X11
Terje Rosten 688b170
 dl
Terje Rosten 688b170
 z
Terje Rosten 688b170
 pthread