0007-auto-lib-libgd-conf-use-pkg-config.patch 945 B

12345678910111213141516171819202122232425262728293031
  1. From fd9885fe5fef5826034547ca6be7299863f99769 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. ---
  9. auto/lib/libgd/conf | 4 ++--
  10. 1 file changed, 2 insertions(+), 2 deletions(-)
  11. diff --git a/auto/lib/libgd/conf b/auto/lib/libgd/conf
  12. index 6e4e91c..1c536a2 100644
  13. --- a/auto/lib/libgd/conf
  14. +++ b/auto/lib/libgd/conf
  15. @@ -7,8 +7,8 @@
  16. ngx_feature_name=
  17. ngx_feature_run=no
  18. ngx_feature_incs="#include <gd.h>"
  19. - ngx_feature_path=
  20. - ngx_feature_libs="-lgd"
  21. + ngx_feature_path="$(${GDLIB_CONFIG:=gdlib-config} --includedir)"
  22. + ngx_feature_libs="$(${GDLIB_CONFIG:=gdlib-config} --libs)"
  23. ngx_feature_test="gdImagePtr img = gdImageCreateFromGifPtr(1, NULL);"
  24. . auto/feature
  25. --
  26. 2.8.2