0001-config-use-pkg-config.patch 732 B

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