1From 2907dcd628242eb29920321fb3a744915d11888f Mon Sep 17 00:00:00 2001 2From: Fabrice Fontaine <fontaine.fabrice@gmail.com> 3Date: Mon, 26 Jul 2021 08:29:21 +0200 4Subject: [PATCH] config: use pkg-config 5 6Change to using pkg-config to find the path to modsecurity and its 7dependencies. 8 9Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 10--- 11 config | 2 +- 12 1 file changed, 1 insertion(+), 1 deletion(-) 13 14diff --git a/config b/config 15index c6e7467..e20190f 100644 16--- a/config 17+++ b/config 18@@ -50,7 +50,7 @@ END 19 else 20 # auto-discovery 21 ngx_feature="ModSecurity library" 22- ngx_feature_libs="-lmodsecurity" 23+ ngx_feature_libs="$(${PKG_CONFIG:=pkg-config} --libs modsecurity)" 24 25 . auto/feature 26 27-- 282.30.2 29 30