mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-20 12:40:07 +01:00
build: properly link against rt
This is especially relevant for cross-compilation, since libevdev uses `clock_gettime`. This came up in https://github.com/JuliaPackaging/Yggdrasil/pull/3201. Signed-off-by: Simeon Schaub <simeondavidschaub99@gmail.com>
This commit is contained in:
parent
bb1cd0dd57
commit
662c84d80e
1 changed files with 2 additions and 1 deletions
|
|
@ -37,6 +37,7 @@ config_h.set('_GNU_SOURCE', '1')
|
||||||
# Dependencies
|
# Dependencies
|
||||||
pkgconfig = import('pkgconfig')
|
pkgconfig = import('pkgconfig')
|
||||||
dep_lm = cc.find_library('m')
|
dep_lm = cc.find_library('m')
|
||||||
|
dep_rt = cc.find_library('rt')
|
||||||
|
|
||||||
input_h = join_paths(meson.source_root(), 'include', 'linux', host_machine.system(), 'input.h')
|
input_h = join_paths(meson.source_root(), 'include', 'linux', host_machine.system(), 'input.h')
|
||||||
uinput_h = join_paths(meson.source_root(), 'include', 'linux', host_machine.system(), 'uinput.h')
|
uinput_h = join_paths(meson.source_root(), 'include', 'linux', host_machine.system(), 'uinput.h')
|
||||||
|
|
@ -76,7 +77,7 @@ version_flag = '-Wl,--version-script,@0@'.format(mapfile)
|
||||||
lib_libevdev = library('evdev',
|
lib_libevdev = library('evdev',
|
||||||
src_libevdev,
|
src_libevdev,
|
||||||
include_directories: [includes_include],
|
include_directories: [includes_include],
|
||||||
dependencies: [],
|
dependencies: [dep_rt],
|
||||||
version: libevdev_so_version,
|
version: libevdev_so_version,
|
||||||
link_args: version_flag,
|
link_args: version_flag,
|
||||||
link_depends: mapfile,
|
link_depends: mapfile,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue