~kennylevinsen/seatd-devel

link with rt v2 APPLIED

Simeon Schaub
Simeon Schaub: 1
 link with rt

 1 files changed, 5 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~kennylevinsen/seatd-devel/patches/23408/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH v2] link with rt Export this patch

Simeon Schaub
Since seatd uses `clock_gettime`, this is needed when cross-compiling.
This came up in https://github.com/JuliaPackaging/Yggdrasil/pull/3193.

Now adds rt as an explicit dependency instead of just adding the flag
manually. I am not very familiar with meson, so I hope I did this
correctly.
---
 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

-- 
2.32.0
Applied, thanks!