aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimeon Schaub <simeondavidschaub99@gmail.com>2021-06-20 22:28:33 +0200
committerKenny Levinsen <kl@kl.wtf>2021-06-20 22:36:33 +0200
commitbff09d88594a35d343b16b21b75495c4284f1292 (patch)
treea9cf027be4da9b08b1464344942d052156e84486
parentfc97206df9b8fbba09de8b320fab6f75235a5c7f (diff)
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.
-rw-r--r--meson.build5
1 files changed, 5 insertions, 0 deletions
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