summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Kaindl <43588962+bernhardkaindl@users.noreply.github.com>2022-12-09 01:37:10 +0100
committerGitHub <noreply@github.com>2022-12-08 17:37:10 -0700
commitf5bff1674563156cef6e56e374da989460f37b9a (patch)
tree0151258bec1952a069bd518c9e7f36a37b8fc889
parent2d1cb6d64a76583bc15deab32caee4e25005b582 (diff)
downloadspack-f5bff1674563156cef6e56e374da989460f37b9a.tar.gz
spack-f5bff1674563156cef6e56e374da989460f37b9a.tar.bz2
spack-f5bff1674563156cef6e56e374da989460f37b9a.tar.xz
spack-f5bff1674563156cef6e56e374da989460f37b9a.zip
bcache: Fix check for libintl to work correctly (#34383)
-rw-r--r--var/spack/repos/builtin/packages/bcache/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/bcache/package.py b/var/spack/repos/builtin/packages/bcache/package.py
index 6cf3678c85..112491a053 100644
--- a/var/spack/repos/builtin/packages/bcache/package.py
+++ b/var/spack/repos/builtin/packages/bcache/package.py
@@ -26,7 +26,7 @@ class Bcache(MakefilePackage):
def setup_build_environment(self, env):
# Add -lintl if provided by gettext, otherwise libintl is provided by the system's glibc:
- if any("libintl" in filename for filename in self.libs):
+ if any("libintl." in filename.split("/")[-1] for filename in self.spec["gettext"].libs):
env.append_flags("LDFLAGS", "-lintl")
patch(