From da76459dc21b5af2449af2d36eb95226cb186ce2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:35:11 +0200 Subject: Adding upstream version 2.6.12. Signed-off-by: Daniel Baumann --- scripts/build-ot.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 scripts/build-ot.sh (limited to 'scripts/build-ot.sh') diff --git a/scripts/build-ot.sh b/scripts/build-ot.sh new file mode 100755 index 0000000..fb128b3 --- /dev/null +++ b/scripts/build-ot.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# +# OT helper. script built from documentation: https://github.com/haproxytech/opentracing-c-wrapper +# + +set -e + +OT_CPP_VERSION="${OT_CPP_VERSION:-1.6.0}" +OT_PREFIX="${OT_PREFIX:-${HOME}/opt}" + +wget -P download-cache/ "https://github.com/opentracing/opentracing-cpp/archive/v${OT_CPP_VERSION}.tar.gz" + +tar xf download-cache/v${OT_CPP_VERSION}.tar.gz +cd opentracing-cpp-${OT_CPP_VERSION} +mkdir build +cd build +cmake -DCMAKE_INSTALL_PREFIX=${OT_PREFIX} -DBUILD_STATIC_LIBS=OFF -DBUILD_MOCKTRACER=OFF -DBUILD_TESTING=OFF .. +make -j$(nproc) +make install + +git clone https://github.com/haproxytech/opentracing-c-wrapper.git +cd opentracing-c-wrapper + ./scripts/bootstrap + ./configure --prefix=${OT_PREFIX} --with-opentracing=${OT_PREFIX} + make -j$(nproc) + make install -- cgit v1.2.3