~kennylevinsen/seatd-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH v2] link with rt

Simeon Schaub
Details
Message ID
<20210620202833.952970-1-simeondavidschaub99@gmail.com>
DKIM signature
pass
Download raw message
Patch: +5 -0
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
Details
Message ID
<VFP0VQ.RUD8DWFIIFEQ2@kl.wtf>
In-Reply-To
<20210620202833.952970-1-simeondavidschaub99@gmail.com> (view parent)
DKIM signature
pass
Download raw message
Applied, thanks!
Reply to thread Export thread (mbox)