X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Flttng-tools%2Fbuild.sh;h=9f6bc7182655cce711e04233759d93845f775f37;hb=7ddb479f014b458ef992d55d71a57322bcc19c7f;hp=afa8b8cc6e40e8fa5bbe2c163b0983d51950d249;hpb=09d45745e001bfa7e2d8b7e6a1b960c76a49308b;p=lttng-ci.git diff --git a/scripts/lttng-tools/build.sh b/scripts/lttng-tools/build.sh index afa8b8c..9f6bc71 100755 --- a/scripts/lttng-tools/build.sh +++ b/scripts/lttng-tools/build.sh @@ -105,6 +105,19 @@ tmpdir="$(mktemp)" ln -sf "$TMPDIR" "$tmpdir" export TMPDIR="$tmpdir" +# Create a symlink to "babeltrace" when the "babeltrace2" executable is found. +# This is a temporary workaround until lttng-tools either allows the override of +# the trace reader in its test suite or that we move to only supporting +# babeltrace2 +if [ -x "$DEPS_BIN/babeltrace2" ]; then + ln -s "$DEPS_BIN/babeltrace2" "$DEPS_BIN/babeltrace" +fi + +# When using babeltrace2 make sure that it finds its plugins and +# plugin-providers. +export BABELTRACE_PLUGIN_PATH="$DEPS_LIB/babeltrace2/plugins/" +export LIBBABELTRACE2_PLUGIN_PROVIDER_DIR="$DEPS_LIB/babeltrace2/plugin-providers/" + export CFLAGS="-g -O2" # Set compiler variables