link gettext properly for git when gettext does not provide libintl (#21472)
This commit is contained in:
parent
beb4d968ef
commit
457fc4c095
1 changed files with 3 additions and 2 deletions
|
@ -253,8 +253,9 @@ def setup_build_environment(self, env):
|
|||
# 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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue