Skip to contentSkip to conversation

build: don't hard-code pkg-config.

PATCH In review Jeremy Sowden 2 participants 2 messages Aug 31, 2020 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: don't hard-code pkg-config.

From: Helmut Grohne <[email protected]>

Use $PKG_CONFIG in configure.ac in order to allow it to be overridden. Fixes cross-compilation.

---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
index 8f8a13b9d4b7..7d779964f77d 100644
@@ -27,7 +27,7 @@ fi
 AC_CHECK_HEADERS([linux/netfilter/x_tables.h], [],
 	[AC_MSG_ERROR([You need to have linux/netfilter/x_tables.h, see INSTALL file for details])])
 PKG_CHECK_MODULES([libxtables], [xtables >= 1.6.0])
-xtlibdir="$(pkg-config --variable=xtlibdir xtables)"
+xtlibdir="$($PKG_CONFIG --variable=xtlibdir xtables)"
 
 AC_ARG_WITH([xtlibdir],
 	AS_HELP_STRING([--with-xtlibdir=PATH],
Signature · 1 line
2.28.0
#1 lore raw
Quoted 4 lines · Jeremy Sowden

From: Helmut Grohne <[email protected]>

Use $PKG_CONFIG in configure.ac in order to allow it to be overridden. Fixes cross-compilation.

It is done.