Add configuration settings to disable certain features in nginx to
be able to reduce it's footprint and allow nginx to be built with support for lua. Signed-off-by: Karl Vogel <karl.vogel@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/packages@34223 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
21
net/nginx/patches-lua-nginx/300-ldl.patch
Normal file
21
net/nginx/patches-lua-nginx/300-ldl.patch
Normal file
@ -0,0 +1,21 @@
|
||||
--- a/lua-nginx/config
|
||||
+++ b/lua-nginx/config
|
||||
@@ -1,5 +1,5 @@
|
||||
ngx_feature="Lua library"
|
||||
-ngx_feature_libs="-llua -lm"
|
||||
+ngx_feature_libs="-llua -lm -ldl"
|
||||
ngx_feature_name=
|
||||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <lauxlib.h>"
|
||||
@@ -47,9 +47,9 @@ else
|
||||
ngx_feature="Lua library in $LUA_LIB and $LUA_INC (specified by the LUA_LIB and LUA_INC env)"
|
||||
ngx_feature_path="$LUA_INC"
|
||||
if [ $NGX_RPATH = YES ]; then
|
||||
- ngx_feature_libs="-R$LUA_LIB -L$LUA_LIB -llua -lm"
|
||||
+ ngx_feature_libs="-R$LUA_LIB -L$LUA_LIB -llua -lm -ldl"
|
||||
else
|
||||
- ngx_feature_libs="-L$LUA_LIB -llua -lm"
|
||||
+ ngx_feature_libs="-L$LUA_LIB -llua -lm -ldl"
|
||||
fi
|
||||
|
||||
. auto/feature
|
Reference in New Issue
Block a user