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 <vapier@chromium.org>
This commit is contained in:
Mike Frysinger 2021-06-18 18:44:45 -04:00 committed by Andrei Vagin
parent 6db0f95dbf
commit 87ea13f6b7
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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 += \