]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
Makefile: Pass PKG_CONFIG_PATH to internal builds
authorPhil Sutter <phil@nwl.cc>
Thu, 5 Feb 2026 14:38:17 +0000 (15:38 +0100)
committerFlorian Westphal <fw@strlen.de>
Wed, 11 Feb 2026 13:00:08 +0000 (14:00 +0100)
When building nftables git HEAD, I use a script which also builds libmnl
and libnftnl in their respective repositories and populates
PKG_CONFIG_PATH variable so nftables is linked against them instead of
host libraries. This is mandatory as host-installed libraries are
chronically outdated and linking against them would fail.

Pass this variable to build test suite as well as the VPATH build
performed by distcheck target based on the presumption that if a custom
PKG_CONFIG_PATH was needed for the main build, these derived builds will
need it as well.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Makefile.am

index c60c2e63d5aff2c0f2040cd591cb5af2f00fd439..828146bc4fb1a47cf9517735f823c711f301c47a 100644 (file)
@@ -23,7 +23,8 @@ libnftables_LIBVERSION = 2:0:1
 ###############################################################################
 
 ACLOCAL_AMFLAGS = -I m4
-AM_DISTCHECK_CONFIGURE_FLAGS = --enable-distcheck
+AM_DISTCHECK_CONFIGURE_FLAGS = --enable-distcheck \
+                              PKG_CONFIG_PATH=$(PKG_CONFIG_PATH)
 
 EXTRA_DIST =
 BUILT_SOURCES =
@@ -446,6 +447,7 @@ tools/nftables.service: tools/nftables.service.in ${top_builddir}/config.status
 endif
 
 if !BUILD_DISTCHECK
+AM_TESTS_ENVIRONMENT = PKG_CONFIG_PATH=$(PKG_CONFIG_PATH)
 TESTS = tests/build/run-tests.sh \
        tests/json_echo/run-test.py \
        tests/monitor/run-tests.sh \