3 Commits

2 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Mar 19 17:33:11 UTC 2025 - Richard Biener <rguenther@suse.com>
- Use -std=gnu17 for SLE16 and higher to aovid C23 conformance issues
with GCC 15.
-------------------------------------------------------------------
Thu Feb 27 08:25:36 UTC 2025 - Richard Biener <rguenther@suse.com>

View File

@@ -70,7 +70,7 @@ Group: Development/Languages/C and C++
Requires: libgmp10 = %{version}
Requires: libgmpxx4 = %{version}
Requires(pre): %{install_info_prereq}
Requires(preun):%{install_info_prereq}
Requires(preun): %{install_info_prereq}
%description devel
These libraries are needed to develop programs which calculate with
@@ -90,7 +90,11 @@ huge numbers (integer and floating point).
export MPN_PATH="s390_64/z14 s390_64/z13 s390_64 generic"
%endif
%endif
%if %{suse_version} >= 1600
export CFLAGS="%{optflags} -fexceptions -std=gnu17"
%else
export CFLAGS="%{optflags} -fexceptions"
%endif
%configure \
--disable-static \
--enable-cxx \