summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/butterflypack/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/butterflypack/package.py')
-rw-r--r--var/spack/repos/builtin/packages/butterflypack/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/butterflypack/package.py b/var/spack/repos/builtin/packages/butterflypack/package.py
index 848dbcdfeb..c9726a52aa 100644
--- a/var/spack/repos/builtin/packages/butterflypack/package.py
+++ b/var/spack/repos/builtin/packages/butterflypack/package.py
@@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+from platform import machine
+
from spack.package import *
@@ -74,7 +76,7 @@ class Butterflypack(CMakePackage):
args.append("-Denable_openmp=%s" % ("ON" if "+openmp" in spec else "OFF"))
if "%cce" in spec:
# Assume the proper Cray CCE module (cce) is loaded:
- craylibs_path = env["CRAYLIBS_" + env["MACHTYPE"].capitalize()]
+ craylibs_path = env["CRAYLIBS_" + machine().upper()]
env.setdefault("LDFLAGS", "")
env["LDFLAGS"] += " -Wl,-rpath," + craylibs_path