From 09603cdb0b299707229a230078efd349f0ccf13a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Wed, 12 Jun 2024 17:58:54 -0600 Subject: [PATCH] tinywl: allow specify pkg-config binary --- tinywl/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tinywl/Makefile b/tinywl/Makefile index 32a76a56..82cbebd2 100644 --- a/tinywl/Makefile +++ b/tinywl/Makefile @@ -1,9 +1,10 @@ -WAYLAND_PROTOCOLS=$(shell pkg-config --variable=pkgdatadir wayland-protocols) -WAYLAND_SCANNER=$(shell pkg-config --variable=wayland_scanner wayland-scanner) +PKG_CONFIG?=pkg-config +WAYLAND_PROTOCOLS=$(shell $(PKG_CONFIG) --variable=pkgdatadir wayland-protocols) +WAYLAND_SCANNER=$(shell $(PKG_CONFIG) --variable=wayland_scanner wayland-scanner) PKGS="wlroots-0.18" wayland-server xkbcommon -CFLAGS+=$(shell pkg-config --cflags $(PKGS)) -LIBS=$(shell pkg-config --libs $(PKGS)) +CFLAGS+=$(shell $(PKG_CONFIG) --cflags $(PKGS)) +LIBS=$(shell $(PKG_CONFIG) --libs $(PKGS)) # wayland-scanner is a tool which generates C headers and rigging for Wayland # protocols, which are specified in XML. wlroots requires you to rig these up