ncl: cairo and math libraries (#4434)
* ncl: depends on cairo+X (cairo~X is built by default) * ncl: '-lm' is needed when linking fortran with gcc
This commit is contained in:
parent
08a054afd8
commit
54cc8dd7fd
@ -56,7 +56,7 @@ class Ncl(Package):
|
|||||||
# Non-optional dependencies according to the manual:
|
# Non-optional dependencies according to the manual:
|
||||||
depends_on('jpeg')
|
depends_on('jpeg')
|
||||||
depends_on('netcdf')
|
depends_on('netcdf')
|
||||||
depends_on('cairo')
|
depends_on('cairo+X')
|
||||||
|
|
||||||
# Extra dependencies that may be missing from build system:
|
# Extra dependencies that may be missing from build system:
|
||||||
depends_on('bison', type='build')
|
depends_on('bison', type='build')
|
||||||
@ -124,7 +124,7 @@ def prepare_site_config(self):
|
|||||||
|
|
||||||
if self.compiler.name == 'gcc':
|
if self.compiler.name == 'gcc':
|
||||||
fc_flags.append('-fno-range-check')
|
fc_flags.append('-fno-range-check')
|
||||||
c2f_flags.extend(['-lgfortran'])
|
c2f_flags.extend(['-lgfortran', '-lm'])
|
||||||
elif self.compiler.name == 'intel':
|
elif self.compiler.name == 'intel':
|
||||||
fc_flags.append('-fp-model precise')
|
fc_flags.append('-fp-model precise')
|
||||||
cc_flags.append('-fp-model precise')
|
cc_flags.append('-fp-model precise')
|
||||||
|
Loading…
Reference in New Issue
Block a user