-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig
28 lines (22 loc) · 778 Bytes
/
config
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
28
lib_arch="$(uname -m)"
ngx_feature="backtrace"
ngx_feature_libs="-lunwind -lunwind-$lib_arch"
ngx_feature_run="no"
ngx_feature_incs="#include <libunwind.h>"
ngx_feature_path=""
ngx_feature_test="unw_context_t uc; unw_getcontext (&uc);"
. auto/feature
if [ "$ngx_found" = no ]; then
cat << END
$0: error: the backtrace module requires the libunwind SDK.
You can either do not enable the module or update your libc library.
Try:
apt-get install libunwind-dev
END
exit 1
fi
ngx_addon_name=ngx_backtrace_module
HTTP_MODULES="$HTTP_MODULES ngx_backtrace_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_backtrace_module.c"
CORE_LIBS="$CORE_LIBS -rdynamic -fno-omit-frame-pointer -lunwind -lunwind-$lib_arch"
CFLAGS="$CFLAGS -rdynamic -fno-omit-frame-pointer"