Accepting request 1277401 from Base:System

drop -std=gnu17 from CFLAGS as 1.4.20 supports C23 (forwarded request 1277391 from hsk17)

OBS-URL: https://build.opensuse.org/request/show/1277401
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/m4?expand=0&rev=46
This commit is contained in:
2025-05-15 14:59:12 +00:00
committed by Git OBS Bridge
2 changed files with 10 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 14 10:43:08 UTC 2025 - Friedrich Haubensak <hsk17@mail.de>
- Drop -std=gnu17 from CFLAGS as 1.4.20 supports C23
-------------------------------------------------------------------
Sat May 10 20:00:23 UTC 2025 - Christoph G <foss@grueninger.de>

10
m4.spec
View File

@@ -50,17 +50,17 @@ cp -a /usr/lib/rpm/config.{sub,guess} build-aux/
gl_cv_func_printf_directive_n=yes \
gl_cv_func_printf_infinite_long_double=yes
%if %{do_profiling} && !0%{?want_reproducible_builds} && 0
%make_build CFLAGS="%{optflags} %{cflags_profile_generate} -std=gnu17"
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}"
# run profiling check sequentially to have it reproducible
%make_build -j1 check CFLAGS="%{optflags} %{cflags_profile_generate} -std=gnu17"
%make_build -j1 check CFLAGS="%{optflags} %{cflags_profile_generate}"
%make_build clean
%make_build CFLAGS="%{optflags} %{cflags_profile_feedback} -std=gnu17"
%make_build CFLAGS="%{optflags} %{cflags_profile_feedback}"
%else
%make_build CFLAGS="%{optflags} -std=gnu17"
%make_build CFLAGS="%{optflags}"
%endif
%check
%make_build check CFLAGS="%{optflags} -std=gnu17"
%make_build check CFLAGS="%{optflags}"
%install
%make_install