Fridrich Strba 2023-08-08 00:19:46 +00:00 committed by Git OBS Bridge
parent 0eefa9bf4a
commit 5729f44470

View File

@ -319,7 +319,7 @@ BuildConflicts: java-headless < 9
BuildRequires: pkgconfig(libopenjp2)
%endif
# Dragonbox requires gcc11
%if 0%{?suse_version} > 1550
%if 0%{?is_opensuse} || 0%{?sle_version} >= 150000
BuildRequires: gcc >= 11
BuildRequires: gcc-c++ >= 11
%else
@ -1098,7 +1098,7 @@ CFLAGS="$ARCH_FLAGS"
CXXFLAGS="$ARCH_FLAGS"
export ARCH_FLAGS CFLAGS CXXFLAGS
%if 0%{?suse_version} < 1550
%if !0%{?is_opensuse} && 0%{?sle_version} < 150000
export CC=gcc-11
export CXX=g++-11
%endif