From bff09d88594a35d343b16b21b75495c4284f1292 Mon Sep 17 00:00:00 2001 From: Simeon Schaub Date: Sun, 20 Jun 2021 22:28:33 +0200 Subject: link with rt Since seatd uses `clock_gettime`, this is needed when cross-compiling. This came up in https://github.com/JuliaPackaging/Yggdrasil/pull/3193. --- meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meson.build b/meson.build index 6299f4e..89fa8df 100644 --- a/meson.build +++ b/meson.build @@ -143,6 +143,10 @@ if get_option('logind') != 'disabled' endif endif +# needed for cross-compilation +realtime = meson.get_compiler('c').find_library('rt') +private_deps += realtime + if with_builtin add_project_arguments('-DBUILTIN_ENABLED=1', language: 'c') private_files += server_files @@ -198,6 +202,7 @@ if with_server [ server_files, 'seatd/seatd.c' ], include_directories: [include_directories('.', 'include')], install: true, + dependencies: [realtime], ) endif -- cgit v1.2.3