mumps: fixed compilation issues due to scotch not found at link time (#4567)

This commit is contained in:
Massimiliano Culpo
2017-06-21 18:36:18 +02:00
committed by Adam J. Stewart
parent 1f2e56e1f3
commit 59b66b0d27
4 changed files with 38 additions and 7 deletions

View File

@@ -48,6 +48,13 @@ class Zlib(Package):
patch('w_patch.patch', when="@1.2.11%cce")
@property
def libs(self):
shared = '+shared' in self.spec
return find_libraries(
['libz'], root=self.prefix, recurse=True, shared=shared
)
def setup_environment(self, spack_env, run_env):
if '+pic' in self.spec:
spack_env.set('CFLAGS', self.compiler.pic_flag)