From 5aab72af04f55cec59f57479de633876ed758260 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Mon, 20 Jan 2025 12:30:48 -0500 Subject: [PATCH] jjb: Set CXX standard for LTTng-UST builds on SLES12SP5 Change-Id: I323502c003fc57f05259cd288db98b4d9f425e94 Signed-off-by: Kienan Stewart --- scripts/lttng-ust/build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/lttng-ust/build.sh b/scripts/lttng-ust/build.sh index 15fd1af..3c38bf3 100755 --- a/scripts/lttng-ust/build.sh +++ b/scripts/lttng-ust/build.sh @@ -207,6 +207,11 @@ if [[ -f /etc/products.d/SLES.prod ]] ; then if vergte "${SLES_VERSION}" "15.4" ; then export CLASSPATH='/usr/share/java/log4j/log4j-api.jar:/usr/share/java/log4j/log4j-core.jar:/usr/share/java/log4j12/log4j-12.jar' fi + + if verlte "${SLES_VERSION}" "12.5" ; then + # liburcu 0.14+ needs C++-11, which is "experimental" on this platform + CXXFLAGS="${CXXFLAGS} -std=gnu++-11" + fi fi # Print build env details -- 2.39.5