summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/qrupdate/package.py26
1 files changed, 20 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/qrupdate/package.py b/var/spack/repos/builtin/packages/qrupdate/package.py
index 185bd1f421..3f21501711 100644
--- a/var/spack/repos/builtin/packages/qrupdate/package.py
+++ b/var/spack/repos/builtin/packages/qrupdate/package.py
@@ -29,17 +29,31 @@ class Qrupdate(MakefilePackage):
return
def install(self, spec, prefix):
+
lapack_blas = spec['lapack'].libs + spec['blas'].libs
- # Build static and dynamic libraries
- make('lib', 'solib',
- 'BLAS={0}'.format(lapack_blas.ld_flags),
- 'LAPACK={0}'.format(lapack_blas.ld_flags))
- # "INSTALL" confuses "make install" on case-insensitive filesystems
+
+ make_args = [
+ 'BLAS={0}'.format(lapack_blas.ld_flags),
+ 'LAPACK={0}'.format(lapack_blas.ld_flags)
+ ]
+
+ # If 64-bit BLAS is used:
+ if (spec.satisfies('^openblas+ilp64') or
+ spec.satisfies('^intel-mkl+ilp64') or
+ spec.satisfies('^intel-parallel-studio+mkl+ilp64')):
+ make_args.append('FFLAGS=-fdefault-integer-8')
+
+ # Build static and dynamic libraries:
+ make('lib', 'solib', *make_args)
+
+ # "INSTALL" confuses "make install" on case-insensitive filesystems:
if os.path.isfile("INSTALL"):
os.remove("INSTALL")
- # create lib folder:
+
+ # Create lib folder:
if (sys.platform == 'darwin'):
mkdirp(prefix.lib)
+
make("install", "PREFIX=%s" % prefix)
@run_after('install')