Make gettext find libxml2 (#23393)
gettext uses a test with <libxml2/libxml/someheader.h> to locate a header, and libxml2 itself includes <libxml/otherheader.h>, so both have to be in the include path.
This commit is contained in:
parent
9c1c7ab6ca
commit
74ed861657
@ -73,10 +73,8 @@ def configure_args(self):
|
||||
config_args.append('--disable-curses')
|
||||
|
||||
if '+libxml2' in spec:
|
||||
config_args.append('CPPFLAGS=-I{0}/include'.format(
|
||||
config_args.append('--with-libxml2-prefix={0}'.format(
|
||||
spec['libxml2'].prefix))
|
||||
config_args.append('LDFLAGS=-L{0} -Wl,-rpath,{0}'.format(
|
||||
spec['libxml2'].libs.directories[0]))
|
||||
else:
|
||||
config_args.append('--with-included-libxml')
|
||||
|
||||
|
@ -48,7 +48,7 @@ class Libxml2(AutotoolsPackage):
|
||||
def headers(self):
|
||||
include_dir = self.spec.prefix.include.libxml2
|
||||
hl = find_all_headers(include_dir)
|
||||
hl.directories = include_dir
|
||||
hl.directories = [include_dir, self.spec.prefix.include]
|
||||
return hl
|
||||
|
||||
def configure_args(self):
|
||||
|
Loading…
Reference in New Issue
Block a user