summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2021-02-03 17:45:53 -0800
committerGitHub <noreply@github.com>2021-02-04 01:45:53 +0000
commit457fc4c095c6d06cfdaa6634f81dfd4044cb4eab (patch)
tree56ff2d0167a6fcb150e6de14a959bac456eeac55 /var
parentbeb4d968ef73d1e8bebe9c4d4fbb89bff1001d8d (diff)
downloadspack-457fc4c095c6d06cfdaa6634f81dfd4044cb4eab.tar.gz
spack-457fc4c095c6d06cfdaa6634f81dfd4044cb4eab.tar.bz2
spack-457fc4c095c6d06cfdaa6634f81dfd4044cb4eab.tar.xz
spack-457fc4c095c6d06cfdaa6634f81dfd4044cb4eab.zip
link gettext properly for git when gettext does not provide libintl (#21472)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/git/package.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/git/package.py b/var/spack/repos/builtin/packages/git/package.py
index 032b48320c..5bbfb8c18e 100644
--- a/var/spack/repos/builtin/packages/git/package.py
+++ b/var/spack/repos/builtin/packages/git/package.py
@@ -253,8 +253,9 @@ class Git(AutotoolsPackage):
# In that case the node in the DAG gets truncated and git DOES NOT
# have a gettext dependency.
if 'gettext' in self.spec:
- env.append_flags('EXTLIBS', '-L{0} -lintl'.format(
- self.spec['gettext'].prefix.lib))
+ if 'intl' in self.spec['gettext'].libs.names:
+ env.append_flags('EXTLIBS', '-L{0} -lintl'.format(
+ self.spec['gettext'].prefix.lib))
env.append_flags('CFLAGS', '-I{0}'.format(
self.spec['gettext'].prefix.include))