janus-gateway: make echo test plugin optional
[buildroot-gz.git] / package / nginx / 0007-auto-lib-libgd-conf-use-pkg-config.patch
blob34e7981c8fc9316767d7d41458ac0b2ecfbd35c9
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
6 Change to using pkg-config to find the path to libgd and its
7 dependencies.
9 Signed-off-by: Martin Bark <martin@barkynet.com>
10 ---
11 auto/lib/libgd/conf | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
14 diff --git a/auto/lib/libgd/conf b/auto/lib/libgd/conf
15 index 6e4e91c..1c536a2 100644
16 --- a/auto/lib/libgd/conf
17 +++ b/auto/lib/libgd/conf
18 @@ -7,8 +7,8 @@
19 ngx_feature_name=
20 ngx_feature_run=no
21 ngx_feature_incs="#include <gd.h>"
22 - ngx_feature_path=
23 - ngx_feature_libs="-lgd"
24 + ngx_feature_path="$(${GDLIB_CONFIG:=gdlib-config} --includedir)"
25 + ngx_feature_libs="$(${GDLIB_CONFIG:=gdlib-config} --libs)"
26 ngx_feature_test="gdImagePtr img = gdImageCreateFromGifPtr(1, NULL);"
27 . auto/feature
29 --
30 2.8.2