0007-auto-lib-libgd-conf-use-pkg-config.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. From 0551f2e5eb4143be0aacc0185cdc4afc9ca80204 Mon Sep 17 00:00:00 2001
  2. From: Martin Bark <martin@barkynet.com>
  3. Date: Fri, 6 May 2016 14:48:49 +0100
  4. Subject: [PATCH] auto/lib/libgd/conf: use pkg-config
  5. Change to using pkg-config to find the path to libgd and its
  6. dependencies.
  7. Signed-off-by: Martin Bark <martin@barkynet.com>
  8. [Peter: updated for 1.15.6]
  9. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  10. ---
  11. auto/lib/libgd/conf | 4 ++--
  12. 1 file changed, 2 insertions(+), 2 deletions(-)
  13. diff --git a/auto/lib/libgd/conf b/auto/lib/libgd/conf
  14. index 67863976..1a4379a5 100644
  15. --- a/auto/lib/libgd/conf
  16. +++ b/auto/lib/libgd/conf
  17. @@ -7,8 +7,8 @@
  18. ngx_feature_name=
  19. ngx_feature_run=no
  20. ngx_feature_incs="#include <gd.h>"
  21. - ngx_feature_path=
  22. - ngx_feature_libs="-lgd"
  23. + ngx_feature_path="$(${GDLIB_CONFIG:=gdlib-config} --includedir)"
  24. + ngx_feature_libs="$(${GDLIB_CONFIG:=gdlib-config} --libs)"
  25. ngx_feature_test="gdImagePtr img = gdImageCreateFromGifPtr(1, NULL);
  26. (void) img"
  27. . auto/feature
  28. --
  29. 2.11.0