summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/kcov/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/kcov/package.py b/var/spack/repos/builtin/packages/kcov/package.py
index 5365d5d6bc..f426c0ec87 100644
--- a/var/spack/repos/builtin/packages/kcov/package.py
+++ b/var/spack/repos/builtin/packages/kcov/package.py
@@ -19,8 +19,8 @@ class Kcov(CMakePackage):
depends_on('cmake@2.8.4:', type='build')
depends_on('zlib')
depends_on('curl')
- depends_on('elfutils')
- depends_on('binutils +libiberty', type='link')
+ depends_on('elfutils', when='platform=linux')
+ depends_on('binutils +libiberty', when='platform=linux', type='link')
def cmake_args(self):
# Necessary at least on macOS, fixes linking error to LLDB