From 08475b33aa520f43982a856a72c5dddd3fcb74ce Mon Sep 17 00:00:00 2001 From: Adrian Perez de Castro Date: Wed, 23 Feb 2022 16:13:57 +0100 Subject: [PATCH] x11: Fix underlinking when --as-needed is used Add the x11-xcb module as dependency as well. The corresponding library is needed for its XGetXCBConnection symbol, which will be reported as missing when the platform plug-in was built with the --as-needed linker flag. (cherry picked from commit 6def870f7287381b5671a0029a10139d1b7699b4) --- platform/x11/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/x11/CMakeLists.txt b/platform/x11/CMakeLists.txt index ea0d4827..dd2be0f9 100644 --- a/platform/x11/CMakeLists.txt +++ b/platform/x11/CMakeLists.txt @@ -1,7 +1,7 @@ # libcogplaform-x11 pkg_check_modules(COGPLATFORM_X11_DEPS IMPORTED_TARGET - REQUIRED wpebackend-fdo-1.0>=1.6.0 egl xcb xkbcommon-x11) + REQUIRED wpebackend-fdo-1.0>=1.6.0 egl xcb xkbcommon-x11 x11-xcb) add_library(cogplatform-x11 MODULE cog-platform-x11.c) set_target_properties(cogplatform-x11 PROPERTIES