[Dnsmasq-discuss] [PATCH] Accept PKG_CONFIG from environment

Geert Stappers stappers at stappers.nl
Sun Jul 12 21:25:25 BST 2020


From: Geert Stappers <stappers at stappers.nl>

Dnsmasq has not yet a portable build system.
Famous is GNU autoconf which generates Makefiles.
To avoid such large change this simple change.

It allows that PKG_CONFIG can be overriden.
That PKG_CONFIG is set by the build environment,
so no need to modify the Makefile in that env.

Reported by the NixOS project.
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 78e25f0..55bccbe 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@ LIBS          =
 
 # Variables you might want to override.
 
-PKG_CONFIG = pkg-config
+PKG_CONFIG ?= pkg-config
 INSTALL    = install
 MSGMERGE   = msgmerge
 MSGFMT     = msgfmt
-- 
2.1.4




More information about the Dnsmasq-discuss mailing list