WIP: make nginx-otel module cmake-free
Use `s/gHttpModule/ngx_otel_module/g' to make the module linkable. Update library dependency list with `-lgrpc++' to fix build.
This commit is contained in:
parent
f58abc0101
commit
dc52126d09
2 changed files with 15 additions and 16 deletions
9
config
9
config
|
|
@ -223,7 +223,7 @@ ngx_feature_name=""
|
|||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <grpc/support/log.h>"
|
||||
ngx_feature_path="/usr/include"
|
||||
ngx_feature_libs="-lgrpc -lgpr"
|
||||
ngx_feature_libs="-lgrpc -lgpr -lgrpc++"
|
||||
ngx_feature_test="gpr_log_verbosity_init();"
|
||||
|
||||
autocppfeature
|
||||
|
|
@ -236,19 +236,18 @@ if [ $ngx_found = no ]; then
|
|||
ngx_feature_path="/usr/local/include"
|
||||
|
||||
if [ $NGX_RPATH = YES ]; then
|
||||
ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lgrpc -lgpr"
|
||||
ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lgrpc -lgpr -lgrpc++"
|
||||
else
|
||||
ngx_feature_libs="-L/usr/local/lib -lgrpc -lgpr"
|
||||
ngx_feature_libs="-L/usr/local/lib -lgrpc -lgpr -lgrpc++"
|
||||
fi
|
||||
|
||||
autocppfeature
|
||||
fi
|
||||
|
||||
if [ $ngx_found = yes ]; then
|
||||
ngx_module_libs="$ngx_module_libs -lgrpc -lgpr"
|
||||
ngx_module_libs="$ngx_module_libs -lgrpc -lgpr -lgrpc++"
|
||||
fi
|
||||
|
||||
#ngx_module_libs="$ngx_module_libs -lupb -lz -lm -lrt -lssl -lcrypto"
|
||||
ngx_module_libs="$ngx_module_libs -lz -lm -lrt -lssl -lcrypto"
|
||||
|
||||
. auto/module
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue