add -std=gnu17 to CFLAGS to fix gcc15 compile time error #1

Closed
hsk17 wants to merge 1 commits from (deleted):factory into factory
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Apr 7 14:33:35 UTC 2025 - Friedrich Haubensak <hsk17@mail.de>
- add -std=gnu17 to CFLAGS to fix gcc15 compile time error
-------------------------------------------------------------------
Mon Jan 13 15:43:31 UTC 2025 - Jorik Cronenberg <jorik.cronenberg@suse.com>

View File

@@ -241,7 +241,7 @@ popd
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
CFLAGS="%{optflags} -D_GNU_SOURCE -W -Wall -Wno-unused -fcommon -fno-strict-aliasing"
CFLAGS="%{optflags} -D_GNU_SOURCE -W -Wall -Wno-unused -fcommon -fno-strict-aliasing -std=gnu17"
%ifarch ppc ppc64 s390x
# bugs 134590, 171532
CFLAGS="$CFLAGS -fsigned-char"