Jonas Kvinge 2022-07-25 20:24:20 +00:00 committed by Git OBS Bridge
parent 4c4eeb047e
commit 49ae4de1db

View File

@ -29,8 +29,8 @@ BuildRequires: appstream-glib
BuildRequires: cmake BuildRequires: cmake
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils
%if 0%{?sle_version} == 150400 %if 0%{?sle_version} == 150400
BuildRequires: gcc11 BuildRequires: gcc10
BuildRequires: gcc11-c++ BuildRequires: gcc10-c++
%else %else
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -122,8 +122,8 @@ Features:
%build %build
%if 0%{?sle_version} == 150400 %if 0%{?sle_version} == 150400
export CC="gcc-11" export CC="gcc-10"
export CXX="g++-11" export CXX="g++-10"
%endif %endif
export CFLAGS="%{optflags} -fno-strict-aliasing" export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="$CFLAGS" export CXXFLAGS="$CFLAGS"