montage: fixing compilation issues for newer gcc versions (#35220)
This commit is contained in:
parent
32f480936a
commit
17f2d66285
1 changed files with 7 additions and 0 deletions
|
@ -12,13 +12,20 @@ class Montage(MakefilePackage):
|
|||
|
||||
homepage = "http://montage.ipac.caltech.edu/"
|
||||
url = "http://montage.ipac.caltech.edu/download/Montage_v6.0.tar.gz"
|
||||
maintainers = ["snehring"]
|
||||
|
||||
version("6.0", sha256="1f540a7389d30fcf9f8cd9897617cc68b19350fbcde97c4d1cdc5634de1992c6")
|
||||
|
||||
depends_on("freetype")
|
||||
depends_on("bzip2")
|
||||
depends_on("libnsl")
|
||||
depends_on("libpng")
|
||||
|
||||
def flag_handler(self, name, flags):
|
||||
if self.spec.satisfies("%gcc@10:") and name.lower() == "cflags":
|
||||
flags.append("-fcommon")
|
||||
return (flags, None, None)
|
||||
|
||||
def install(self, spec, prefix):
|
||||
# not using autotools, just builds bin and lib in the source directory
|
||||
mkdirp(prefix.bin, prefix.lib)
|
||||
|
|
Loading…
Reference in a new issue