summaryrefslogtreecommitdiffstats
path: root/patches/nginx-1.14.2/0007-auto-lib-libgd-conf-use-pkg-config.patch
blob: e63546cd9bb9e793208144495612563b1eef1d76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Martin Bark <martin@barkynet.com>
Date: Fri, 6 May 2016 14:48:49 +0100
Subject: [PATCH] auto/lib/libgd/conf: use pkg-config

Change to using pkg-config to find the path to libgd and its
dependencies.

Signed-off-by: Martin Bark <martin@barkynet.com>
---
 auto/lib/libgd/conf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/auto/lib/libgd/conf b/auto/lib/libgd/conf
index 87761f14dc29..4c74d8f334d2 100644
--- a/auto/lib/libgd/conf
+++ b/auto/lib/libgd/conf
@@ -7,8 +7,8 @@
     ngx_feature_name=
     ngx_feature_run=no
     ngx_feature_incs="#include <gd.h>"
-    ngx_feature_path=
-    ngx_feature_libs="-lgd"
+    ngx_feature_path="$(${GDLIB_CONFIG:=gdlib-config} --includedir)"
+    ngx_feature_libs="$(${GDLIB_CONFIG:=gdlib-config} --libs)"
     ngx_feature_test="gdImagePtr img = gdImageCreateFromGifPtr(1, NULL);"
     . auto/feature