1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-18 13:55:36 -05:00

meson: link with libdl if it's not available in libc

Fixes #1295

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-07-30 11:55:12 +01:00
parent 97fa64769e
commit 4d6758a4ca
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4

View file

@ -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')