mirror of
https://github.com/yshui/picom.git
synced 2024-11-25 14:06:08 -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:
parent
97fa64769e
commit
4d6758a4ca
1 changed files with 6 additions and 1 deletions
|
@ -103,8 +103,13 @@ subdir('renderer')
|
||||||
subdir('transition')
|
subdir('transition')
|
||||||
subdir('utils')
|
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,
|
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,
|
install: true, include_directories: picom_inc,
|
||||||
export_dynamic: true, gnu_symbol_visibility: 'hidden')
|
export_dynamic: true, gnu_symbol_visibility: 'hidden')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue