From 87ea13f6b7f176f9b7f9587f7cedec2e79880aae Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 18 Jun 2021 18:44:45 -0400 Subject: [PATCH] add PKG_CONFIG default in a few more places These files use $PKG_CONFIG before they include the common files that setup a default, so set early defaults in them too. Signed-off-by: Mike Frysinger --- test/zdtm/lib/Makefile | 1 + test/zdtm/static/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/test/zdtm/lib/Makefile b/test/zdtm/lib/Makefile index 5ecf8bccf..ceec2b878 100644 --- a/test/zdtm/lib/Makefile +++ b/test/zdtm/lib/Makefile @@ -6,6 +6,7 @@ LIB := libzdtmtst.a LIBSRC := datagen.c msg.c parseargs.c test.c streamutil.c lock.c ns.c tcp.c unix.c fs.c sysctl.c +PKG_CONFIG ?= pkg-config pkg-config-check = $(shell sh -c '$(PKG_CONFIG) $(1) && echo y') ifeq ($(call pkg-config-check,libbpf),y) LIBSRC += bpfmap_zdtm.c diff --git a/test/zdtm/static/Makefile b/test/zdtm/static/Makefile index c5f3c98be..1c11b36c3 100644 --- a/test/zdtm/static/Makefile +++ b/test/zdtm/static/Makefile @@ -241,6 +241,7 @@ TST_NOFILE := \ sigtrap01 \ # jobctl00 \ +PKG_CONFIG ?= pkg-config pkg-config-check = $(shell sh -c '$(PKG_CONFIG) $(1) && echo y') ifeq ($(call pkg-config-check,libbpf),y) TST_NOFILE += \