-
Notifications
You must be signed in to change notification settings - Fork 0
/
config
22 lines (16 loc) · 850 Bytes
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ngx_module_type=HTTP
ngx_module_name=ngx_lualdap
ngx_module_srcs="$ngx_addon_dir/src/lualdap.c"
# Unfortunately we need some internal headers to integrate with cosockets
ngx_lua_dir=$(echo "$HTTP_LUA_DEPS" | grep -oE 'ngx_lua-[^/]+' | head -1)
# Lua is picked up from the symbol space the module is loaded into
# Symas paths are for (in order)
# - commercially supported OpenLDAP
# - OpenLDAP LTB
# - Homebrew
ngx_module_libs="-L/opt/symas/lib -L /usr/local/openldap/lib64 -L/usr/local/opt/openldap/lib -lldap -llber"
ngx_module_incs="/opt/symas/include /usr/local/openldap/include /usr/local/opt/openldap/include ../${ngx_lua_dir}/src"
DEBUG_CFLAGS="-DNGX_LUA_USE_ASSERT -DNGX_LUA_ABORT_AT_PANIC -DNDK_SET_VAR -DNGX_DEBUG -g3 -O"
CFLAGS="$CFLAGS -pipe -Wall -Wpointer-arith -Wno-unused-parameter"
. auto/module
ngx_addon_name=$ngx_module_name