netlib-scalapack: fix build with gcc@14 (#44120)

This commit is contained in:
Michael Kuhn 2024-05-17 22:38:46 +02:00 committed by GitHub
parent a76f37da96
commit 574bd2db99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,11 @@ class ScalapackBase(CMakePackage):
def flag_handler(self, name, flags):
iflags = []
if name == "fflags":
if name == "cflags":
if self.spec.satisfies("%gcc@14:"):
# https://bugzilla.redhat.com/show_bug.cgi?id=2178710
iflags.append("-std=gnu89")
elif name == "fflags":
if self.spec.satisfies("%cce"):
iflags.append("-hnopattern")
return (iflags, None, None)