libxpm package: fix RHEL8 build with libintl (#37713)

Set LDFLAGS rather than LDLIBS
This commit is contained in:
Chris Green 2023-05-16 13:32:26 -05:00 committed by GitHub
parent 79e4a13eee
commit 9ee2d79de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,6 @@ class Libxpm(AutotoolsPackage, XorgPackage):
depends_on("util-macros", type="build")
def flag_handler(self, name, flags):
if name == "ldlibs" and "intl" in self.spec["gettext"].libs.names:
if name == "ldflags" and "intl" in self.spec["gettext"].libs.names:
flags.append("-lintl")
return env_flags(name, flags)