Some other packages, such as shared-mime-info, might need libxml2 and
related tools (xmllint, etc.) to be available on the host. This patch
modifies tthe libxml2 Makefile to compile libxml2 for the host, in
$(HOST_DIR).
Patch from Sven Neumann <s.neumann@raumfeld.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Version bumped to 2.6.31
(2.6.32 has .rej files so patch target fails - upstream need to be informed).
The xml2-config file in staging dir needs to have prefix / exec-prefix setup
to understand the staging directory location.
This then means that packages that call xml2-config to get include paths/cflags
and libs etc work properly.
This is very similar to what freetype does to freetype-config.
Till: buildroot@uclibc.org
Ämne: [Buildroot] [patch] libxml2 install fails because of missing directory
Datum: Tue, 14 Aug 2007 16:34:34 -0400 (22.34 CEST)
If libxml2 is installed before $(TARGET_DIR)/usr/lib is created,
it fails because it can't copy the library over.
Also, the dependency tree is a bit messed up. libxml2.a should
only be installed if target-headers is specified, it's 4MB
on my system and the only .a file I found in my TARGET_DIR
(target-headers was not specified).
The attached patch fixes the above problems.
-Brad