bcache: Fix check for libintl to work correctly (#34383)

This commit is contained in:
Bernhard Kaindl
2022-12-09 01:37:10 +01:00
committed by GitHub
parent 2d1cb6d64a
commit f5bff16745

View File

@@ -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(