summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2020-07-24 17:02:58 +0200
committerGitHub <noreply@github.com>2020-07-24 17:02:58 +0200
commit54bce00d4dd606b20f8b6ad1efad58d2fc0fddeb (patch)
treefe0526ae4012fe56215427a0f32e99be4c3a41fb /var
parentd3e4b14997f7fc62146d7754aca9c189ec194ead (diff)
downloadspack-54bce00d4dd606b20f8b6ad1efad58d2fc0fddeb.tar.gz
spack-54bce00d4dd606b20f8b6ad1efad58d2fc0fddeb.tar.bz2
spack-54bce00d4dd606b20f8b6ad1efad58d2fc0fddeb.tar.xz
spack-54bce00d4dd606b20f8b6ad1efad58d2fc0fddeb.zip
Ensure that the stubs directory does not end up in the rpath (#17619)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/cuda/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/cuda/package.py b/var/spack/repos/builtin/packages/cuda/package.py
index 4018e82d06..300dda7b38 100644
--- a/var/spack/repos/builtin/packages/cuda/package.py
+++ b/var/spack/repos/builtin/packages/cuda/package.py
@@ -138,6 +138,7 @@ class Cuda(Package):
# CUDA 10.0 provides Compatability libraries for running newer versions
# of CUDA with older drivers. These do not work with newer drivers.
for lib in libs:
- if 'compat' not in lib.split(os.sep):
+ parts = lib.split(os.sep)
+ if 'compat' not in parts and 'stubs' not in parts:
filtered_libs.append(lib)
return LibraryList(filtered_libs)