Skip to content

Commit

Permalink
x11: Fix underlinking when --as-needed is used
Browse files Browse the repository at this point in the history
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 6def870)
  • Loading branch information
aperezdc committed Mar 29, 2022
1 parent 717fadb commit 08475b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/x11/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 08475b3

Please sign in to comment.