wannier90: gfortran-10 support and libs property (#34278)
This commit is contained in:
		| @@ -80,6 +80,12 @@ def edit(self, spec, prefix): | |||||||
|         for key, value in substitutions.items(): |         for key, value in substitutions.items(): | ||||||
|             filter_file(key, value, self.makefile_name) |             filter_file(key, value, self.makefile_name) | ||||||
| 
 | 
 | ||||||
|  |         if self.spec.satisfies("%gcc@10:"): | ||||||
|  |             fflags = [ | ||||||
|  |                 "-fallow-argument-mismatch", | ||||||
|  |             ] | ||||||
|  |             filter_file(r"(^FCOPTS=.*)", r"\1 {0}".format(" ".join(fflags)), self.makefile_name) | ||||||
|  | 
 | ||||||
|         if "@:2 +shared" in self.spec: |         if "@:2 +shared" in self.spec: | ||||||
|             # this is to build a .shared wannier90 library |             # this is to build a .shared wannier90 library | ||||||
|             filter_file( |             filter_file( | ||||||
| @@ -188,3 +194,7 @@ def install(self, spec, prefix): | |||||||
| 
 | 
 | ||||||
|         for file in find(join_path(self.stage.source_path, "src/obj"), "*.mod"): |         for file in find(join_path(self.stage.source_path, "src/obj"), "*.mod"): | ||||||
|             install(file, self.prefix.modules) |             install(file, self.prefix.modules) | ||||||
|  | 
 | ||||||
|  |     @property | ||||||
|  |     def libs(self): | ||||||
|  |         return find_libraries("libwannier", self.prefix, shared=True, recursive=True) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Glenn Johnson
					Glenn Johnson