When cross-compiling, this will usually be set to the appropriate
pkg-config for the platform being built for,
e.g. aarch64-unknown-linux-gnu-pkg-config.
---
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 97aac43..bb16f87 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+PKG_CONFIG ?= pkg-config
SCANNER := wayland-scanner
PREFIX=/usr/local
@@ -5,7 +6,7 @@ BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man
CFLAGS=-Wall -Werror -Wextra -Wpedantic -Wno-unused-parameter -Wconversion -Wformat-security -Wformat -Wsign-conversion -Wfloat-conversion -Wunused-result $(shell pkg-config --cflags pixman-1)
-LIBS=-lwayland-client $(shell pkg-config --libs pixman-1) -lrt
+LIBS=-lwayland-client $(shell $(PKG_CONFIG) --libs pixman-1) -lrt
OBJ=river-tag-overlay.o river-status-unstable-v1.o wlr-layer-shell-unstable-v1.o xdg-shell.o
GEN=river-status-unstable-v1.c river-status-unstable-v1.h wlr-layer-shell-unstable-v1.c wlr-layer-shell-unstable-v1.h xdg-shell.c xdg-shell.h
--
2.37.1