summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2024-05-03 15:40:02 +0200
committerGitHub <noreply@github.com>2024-05-03 15:40:02 +0200
commit5c96e67bb119b6ce975343987d2e7df101166107 (patch)
treee9b180ec03e5f87449659fa6203b1583924d980c
parent7008bb63352c59b5bcaa688e136ba3bf8e34fc03 (diff)
downloadspack-5c96e67bb119b6ce975343987d2e7df101166107.tar.gz
spack-5c96e67bb119b6ce975343987d2e7df101166107.tar.bz2
spack-5c96e67bb119b6ce975343987d2e7df101166107.tar.xz
spack-5c96e67bb119b6ce975343987d2e7df101166107.zip
Make runtimes depend on libc only on linux (#43981)
-rw-r--r--var/spack/repos/builtin/packages/gcc-runtime/package.py3
-rw-r--r--var/spack/repos/builtin/packages/intel-oneapi-runtime/package.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/gcc-runtime/package.py b/var/spack/repos/builtin/packages/gcc-runtime/package.py
index 9c92feb337..f5c36221b1 100644
--- a/var/spack/repos/builtin/packages/gcc-runtime/package.py
+++ b/var/spack/repos/builtin/packages/gcc-runtime/package.py
@@ -53,7 +53,8 @@ class GccRuntime(Package):
provides("libgfortran@4", when="%gcc@7")
provides("libgfortran@5", when="%gcc@8:")
- depends_on("libc", type="link")
+ depends_on("libc", type="link", when="platform=linux")
+ depends_on("libc", type="link", when="platform=cray")
def install(self, spec, prefix):
if spec.platform in ["linux", "cray", "freebsd"]:
diff --git a/var/spack/repos/builtin/packages/intel-oneapi-runtime/package.py b/var/spack/repos/builtin/packages/intel-oneapi-runtime/package.py
index 66e8957b8f..de2b5d39fa 100644
--- a/var/spack/repos/builtin/packages/intel-oneapi-runtime/package.py
+++ b/var/spack/repos/builtin/packages/intel-oneapi-runtime/package.py
@@ -45,7 +45,8 @@ class IntelOneapiRuntime(Package):
conflicts("platform=windows", msg="IntelOneAPI can only be installed on Linux, and FreeBSD")
conflicts("platform=darwin", msg="IntelOneAPI can only be installed on Linux, and FreeBSD")
- depends_on("libc", type="link")
+ depends_on("libc", type="link", when="platform=linux")
+ depends_on("libc", type="link", when="platform=cray")
def install(self, spec, prefix):
libraries = get_elf_libraries(compiler=self.compiler, libraries=self.LIBRARIES)