When building otel module as a part of nginx build system process (via ./configure --add-dynamic-module=nginx-otel/), there is no way to pass additional options to the cmake invocation, making it impossible link the module with desired ssl library variant. With the patch, it's not possible to pass the additional options, e.g. NGINX_OTEL_ADDITIONAL_OPTS="-DOPENSSL_ROOT_DIR=/usr/lib64/openssl11;/usr/include/openssl11" ./configure --add-dynamic-module=nginx-otel/, and cmake will pick up the correct ssl variant to link the module with.
11 lines
445 B
Text
11 lines
445 B
Text
ngx_addon_name=ngx_otel_module
|
|
|
|
cmake -D NGX_OTEL_NGINX_BUILD_DIR=$NGX_OBJS \
|
|
-D NGX_OTEL_FETCH_DEPS=OFF \
|
|
-D NGX_OTEL_PROTO_DIR=$NGX_OTEL_PROTO_DIR \
|
|
-D CMAKE_LIBRARY_OUTPUT_DIRECTORY=$PWD/$NGX_OBJS \
|
|
-D "CMAKE_C_FLAGS=$NGX_CC_OPT" \
|
|
-D "CMAKE_CXX_FLAGS=$NGX_CC_OPT" \
|
|
-D "CMAKE_MODULE_LINKER_FLAGS=$NGX_LD_OPT" \
|
|
$NGINX_OTEL_CMAKE_ADDITIONAL_OPTS \
|
|
-S $ngx_addon_dir -B $NGX_OBJS/otel || exit 1
|