build: properly link against rt

This is especially relevant for cross-compilation, since dwl uses
`clock_gettime`.
This commit is contained in:
Simeon Schaub 2021-06-21 12:56:26 +02:00
parent c6f96d5391
commit fa987884eb
No known key found for this signature in database
GPG Key ID: EB2EE6B6F3725876

View File

@ -8,6 +8,7 @@ WAYLAND_SCANNER=$(shell pkg-config --variable=wayland_scanner wayland-scanner)
PKGS = wlroots wayland-server xcb xkbcommon libinput
CFLAGS += $(foreach p,$(PKGS),$(shell pkg-config --cflags $(p)))
LDLIBS += $(foreach p,$(PKGS),$(shell pkg-config --libs $(p)))
LDLIBS += -lrt
all: dwl