summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/gperftools/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/gperftools/package.py b/var/spack/repos/builtin/packages/gperftools/package.py
index 0cc4b60a0d..11e5613cd4 100644
--- a/var/spack/repos/builtin/packages/gperftools/package.py
+++ b/var/spack/repos/builtin/packages/gperftools/package.py
@@ -31,7 +31,9 @@ class Gperftools(AutotoolsPackage):
description="Try to build run-time switch for sized delete operator",
)
variant("debugalloc", default=True, description="Build versions of libs with debugalloc")
- variant("libunwind", default=True, description="Enable libunwind linking")
+ variant(
+ "libunwind", default=True, when="platform=linux", description="Enable libunwind linking"
+ )
depends_on("unwind", when="+libunwind")