Skip to content

Commit

Permalink
meson: link with libdl if it's not available in libc
Browse files Browse the repository at this point in the history
Fixes #1295

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
  • Loading branch information
yshui committed Jul 30, 2024
1 parent 76af408 commit daf6eab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,13 @@ subdir('renderer')
subdir('transition')
subdir('utils')

dl_dep = []
if not cc.has_function('dlopen')
dl_dep = [ cc.find_library('dl', required: true) ]
endif

picom = executable('picom', srcs, c_args: cflags,
dependencies: [ base_deps, deps, test_h_dep ],
dependencies: [ base_deps, deps, test_h_dep ] + dl_dep,
install: true, include_directories: picom_inc,
export_dynamic: true, gnu_symbol_visibility: 'hidden')

Expand Down

0 comments on commit daf6eab

Please sign in to comment.