gettext: Fix build with external libxml2
This commit is contained in:
parent
6493181ef0
commit
c209ad65cb
@ -94,6 +94,11 @@ def flag_handler(self, name, flags):
|
||||
flags.append("-lxml2")
|
||||
return (flags, None, None)
|
||||
|
||||
def setup_build_environment(self, env):
|
||||
if "+libxml2" in self.spec:
|
||||
# Fix include not found when libxml2 is external /usr
|
||||
env.set("INCXML2", self.spec["libxml2"].headers.cpp_flags)
|
||||
|
||||
@classmethod
|
||||
def determine_version(cls, exe):
|
||||
gettext = Executable(exe)
|
||||
|
Loading…
Reference in New Issue
Block a user