mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-28 02:34:15 +00:00
build: properly link against rt
This is especially relevant for cross-compilation, since dwl uses `clock_gettime`.
This commit is contained in:
parent
c6f96d5391
commit
fa987884eb
1
Makefile
1
Makefile
@ -8,6 +8,7 @@ WAYLAND_SCANNER=$(shell pkg-config --variable=wayland_scanner wayland-scanner)
|
|||||||
PKGS = wlroots wayland-server xcb xkbcommon libinput
|
PKGS = wlroots wayland-server xcb xkbcommon libinput
|
||||||
CFLAGS += $(foreach p,$(PKGS),$(shell pkg-config --cflags $(p)))
|
CFLAGS += $(foreach p,$(PKGS),$(shell pkg-config --cflags $(p)))
|
||||||
LDLIBS += $(foreach p,$(PKGS),$(shell pkg-config --libs $(p)))
|
LDLIBS += $(foreach p,$(PKGS),$(shell pkg-config --libs $(p)))
|
||||||
|
LDLIBS += -lrt
|
||||||
|
|
||||||
all: dwl
|
all: dwl
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user