summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Green <greenc@fnal.gov>2023-05-16 13:32:26 -0500
committerGitHub <noreply@github.com>2023-05-16 13:32:26 -0500
commit9ee2d79de172de14477a78e5d407548a63eea33a (patch)
treeccf1489e59129635461480fcfc994ba74165f7e9
parent79e4a13eee89661f9162e789e9ce47b5e08d5330 (diff)
downloadspack-9ee2d79de172de14477a78e5d407548a63eea33a.tar.gz
spack-9ee2d79de172de14477a78e5d407548a63eea33a.tar.bz2
spack-9ee2d79de172de14477a78e5d407548a63eea33a.tar.xz
spack-9ee2d79de172de14477a78e5d407548a63eea33a.zip
libxpm package: fix RHEL8 build with libintl (#37713)
Set LDFLAGS rather than LDLIBS
-rw-r--r--var/spack/repos/builtin/packages/libxpm/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/libxpm/package.py b/var/spack/repos/builtin/packages/libxpm/package.py
index e3f4f2ee35..bbdad61aa2 100644
--- a/var/spack/repos/builtin/packages/libxpm/package.py
+++ b/var/spack/repos/builtin/packages/libxpm/package.py
@@ -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)