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

@@ -92,14 +92,9 @@ def write_makefile_inc(self):
orderings = ['-Dpord']
if '+ptscotch' in self.spec or '+scotch' in self.spec:
join_lib = ' -l%s' % ('pt' if '+ptscotch' in self.spec else '')
makefile_conf.extend([
"ISCOTCH = -I%s" % self.spec['scotch'].prefix.include,
"LSCOTCH = -L%s %s%s" % (self.spec['scotch'].prefix.lib,
join_lib,
join_lib.join(['esmumps',
'scotch',
'scotcherr']))
"LSCOTCH = {0}".format(self.spec['scotch'].libs.ld_flags)
])
orderings.append('-Dscotch')