mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 07:51:28 +00:00
build: link with -pthread
Fixes the following FreeBSD error:
ld: error: undefined symbol: pthread_getschedparam
>>> referenced by realtime.c:25 (../sway/realtime.c:25)
>>> sway/sway.p/realtime.c.o:(set_rr_scheduling)
Fixes: a3a82efbf6
("realtime: request SCHED_RR using CAP_SYS_NICE")
This commit is contained in:
parent
cab2189aa6
commit
a5c2e9fee0
|
@ -70,6 +70,7 @@ fish_comp = dependency('fish', required: false)
|
||||||
math = cc.find_library('m')
|
math = cc.find_library('m')
|
||||||
rt = cc.find_library('rt')
|
rt = cc.find_library('rt')
|
||||||
xcb_icccm = dependency('xcb-icccm', required: get_option('xwayland'))
|
xcb_icccm = dependency('xcb-icccm', required: get_option('xwayland'))
|
||||||
|
threads = dependency('threads') # for pthread_setschedparam
|
||||||
|
|
||||||
wlroots_features = {
|
wlroots_features = {
|
||||||
'xwayland': false,
|
'xwayland': false,
|
||||||
|
|
|
@ -220,6 +220,7 @@ sway_deps = [
|
||||||
glesv2,
|
glesv2,
|
||||||
pixman,
|
pixman,
|
||||||
server_protos,
|
server_protos,
|
||||||
|
threads,
|
||||||
wayland_server,
|
wayland_server,
|
||||||
wlroots,
|
wlroots,
|
||||||
xkbcommon,
|
xkbcommon,
|
||||||
|
|
Loading…
Reference in a new issue