Skip to content

Commit

Permalink
netlib-scalapack: fix build with gcc@14 (#44120)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkuhn committed May 17, 2024
1 parent a76f37d commit 574bd2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion var/spack/repos/builtin/packages/netlib-scalapack/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 574bd2d

Please sign in to comment.