diff --git a/libreoffice.spec b/libreoffice.spec index 302adeb..f089090 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1095,7 +1095,7 @@ ARCH_FLAGS="`echo %{optflags} -flifetime-dse=1 | sed -e 's/^-g /-g1 /g' -e 's/ - ARCH_FLAGS="`echo %{optflags} | sed -e 's/^-g /-g1 /g' -e 's/ -g / -g1 /g' -e 's/ -g$/ -g1/g'`" %endif CFLAGS="$ARCH_FLAGS" -CXXFLAGS="$ARCH_FLAGS" +CXXFLAGS="-std=c++17 $ARCH_FLAGS" export ARCH_FLAGS CFLAGS CXXFLAGS %if !0%{?is_opensuse} && 0%{?sle_version} < 150000