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.
This commit is contained in:
parent
fc97206df9
commit
bff09d8859
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue