From b2c9e4768f4d5c82fc3d7447aa412043e913e7b4 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Tue, 18 Jan 2022 09:21:45 +0100 Subject: [PATCH] spns #26832: DB11 - force c++11 --- products/compil_scripts/qt-5.12.10.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/products/compil_scripts/qt-5.12.10.sh b/products/compil_scripts/qt-5.12.10.sh index a8fc106..70d8bae 100755 --- a/products/compil_scripts/qt-5.12.10.sh +++ b/products/compil_scripts/qt-5.12.10.sh @@ -4,11 +4,14 @@ echo "########################################################################## echo "Qt" $VERSION echo "##########################################################################" - -if [[ $DIST_NAME == "FD" && $DIST_VERSION == "32" ]] -then - export QMAKE_CXXFLAGS="-std=c++11" -fi +LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" +case $LINUX_DISTRIBUTION in + FD32|DB11) + export QMAKE_CXXFLAGS="-std=c++11" + ;; + *) + ;; +esac if [ -n "$SAT_DEBUG" ] then -- 2.39.2