Skip to content

Commit 9ee2d79

Browse files
authored
libxpm package: fix RHEL8 build with libintl (#37713)
Set LDFLAGS rather than LDLIBS
1 parent 79e4a13 commit 9ee2d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

var/spack/repos/builtin/packages/libxpm/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ class Libxpm(AutotoolsPackage, XorgPackage):
2727
depends_on("util-macros", type="build")
2828

2929
def flag_handler(self, name, flags):
30-
if name == "ldlibs" and "intl" in self.spec["gettext"].libs.names:
30+
if name == "ldflags" and "intl" in self.spec["gettext"].libs.names:
3131
flags.append("-lintl")
3232
return env_flags(name, flags)

0 commit comments

Comments
 (0)