commit old changes
Signed-off-by: Ava Hahn <a.hahn@f5.com>
This commit is contained in:
parent
e7b504fa40
commit
3844ffd94b
3 changed files with 38 additions and 8 deletions
26
nginx.sh
26
nginx.sh
|
|
@ -52,7 +52,7 @@ function build_nginx() {
|
|||
--with-stream_ssl_module \
|
||||
--with-stream_realip_module \
|
||||
--with-stream_ssl_preread_module \
|
||||
--with-debug && \
|
||||
--with-debug
|
||||
make -j$(num_jobs)
|
||||
}
|
||||
|
||||
|
|
@ -67,13 +67,23 @@ function clean_nginx() {
|
|||
}
|
||||
|
||||
function build_otel() {
|
||||
mkdir -p build && \
|
||||
cd build && \
|
||||
cmake -DCMAKE_CXX_COMPILER=$(which g++) \
|
||||
-DNGX_OTEL_NGINX_BUILD_DIR=../../nginx/objs \
|
||||
-DNGX_OTEL_GRPC=package \
|
||||
-DCMAKE_CXX_FLAGS="-D_LARGEFILE64_SOURCE" .. && \
|
||||
make -j$(num_jobs)
|
||||
BSDFLG=""
|
||||
if [[ $(uname) == "FreeBSD" ]] || [[ "$(grep "Fedora" /etc/issue)" ]]; then
|
||||
BSDFLG="-DNGX_OTEL_GRPC=package"
|
||||
fi
|
||||
|
||||
if [[ -d build ]]; then
|
||||
rm -rf build
|
||||
fi
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake -DCMAKE_CXX_COMPILER=$(which g++) \
|
||||
-DNGX_OTEL_NGINX_BUILD_DIR=../../nginx/objs \
|
||||
$BSDFLG \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DCMAKE_CXX_FLAGS="-D_LARGEFILE64_SOURCE" ..
|
||||
make -j$(num_jobs)
|
||||
}
|
||||
|
||||
function test_otel() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue