Skip to content

Commit

Permalink
Fix X11 library references for lua modules
Browse files Browse the repository at this point in the history
Signed-off-by: Tin Švagelj <[email protected]>
  • Loading branch information
Caellian committed Nov 16, 2024
1 parent 2bfd674 commit 905aa15
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmake/ConkyPlatformChecks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,14 @@ if(BUILD_LUA_CAIRO)
set(luacairo_includes ${CAIROXLIB_INCLUDE_DIRS} ${luacairo_includes})
endif(BUILD_LUA_CAIRO_XLIB)

# This is required because OpenBSD requires X11_LIBRARIES instead of -lX11
# because X11 isn't in default linker search path
list(REMOVE_DUPLICATES luacairo_libs)
if("X11" IN_LIST luacairo_libs)
list(REMOVE_ITEM luacairo_libs "X11" "Xext")
set(luacairo_libs ${X11_LIBRARIES} ${luacairo_libs})
endif("X11" IN_LIST luacairo_libs)

find_program(APP_PATCH patch)

if(NOT APP_PATCH)
Expand Down

0 comments on commit 905aa15

Please sign in to comment.