From fa987884eb5f5fe9335360faafa254d51787108a Mon Sep 17 00:00:00 2001 From: Simeon Schaub Date: Mon, 21 Jun 2021 12:56:26 +0200 Subject: [PATCH] build: properly link against rt This is especially relevant for cross-compilation, since dwl uses `clock_gettime`. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 5ff69e953..eaefe239b 100644 --- a/Makefile +++ b/Makefile @@ -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