diff --git a/var/spack/repos/builtin/packages/quantum-espresso/package.py b/var/spack/repos/builtin/packages/quantum-espresso/package.py index de522827b4..5188568b19 100644 --- a/var/spack/repos/builtin/packages/quantum-espresso/package.py +++ b/var/spack/repos/builtin/packages/quantum-espresso/package.py @@ -377,7 +377,7 @@ def install(self, spec, prefix): scalapack_option = 'yes' options.append('--with-scalapack={0}'.format(scalapack_option)) scalapack_lib = spec['scalapack'].libs - options.append('SCALAPACK_LIBS={0}'.format(scalapack_lib)) + options.append('SCALAPACK_LIBS={0}'.format(scalapack_lib.ld_flags)) if '+elpa' in spec: