aboutsummaryrefslogtreecommitdiff
path: root/www/nginx/files/extra-patch-nginx-vod-module-config
blob: 1f32296b0e9cd5628b930b02ac492b9575e34500 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- ../nginx-vod-module-1.27/config.orig	2020-07-09 20:33:33 UTC
+++ ../nginx-vod-module-1.27/config
@@ -227,8 +227,12 @@ ngx_feature_name="NGX_HAVE_LIBXML2"
 ngx_feature_run=no
 ngx_feature_incs="#include <libxml/parser.h>
                   #include <libxml/tree.h>"
-ngx_feature_path="/usr/include/libxml2"
-ngx_feature_libs="-lxml2"
+ngx_feature_path="%%PREFIX%%/include/libxml2 %%PREFIX%%/include"
+if [ $NGX_RPATH = YES ]; then
+    ngx_feature_libs="-R%%PREFIX%%/lib -L%%PREFIX%%/lib -lxml2 -lxslt"
+else
+    ngx_feature_libs="-L%%PREFIX%%/lib -lxml2 -lxslt"
+fi
 ngx_feature_test="xmlReadMemory(NULL, 0, NULL, NULL, 0);"
 . auto/feature