diff mbox

host-libxml2: enable debug for mesa3d

Message ID 1355223849-3934-1-git-send-email-arnout@mind.be
State Accepted
Commit 71a4513e73ec8a3c3d1a18c328c867a8ba2eb471
Headers show

Commit Message

Arnout Vandecappelle Dec. 11, 2012, 11:04 a.m. UTC
The API generation script in mesa3d requires libxml2 to be built with
debug, because it uses the lsCountNode function which is only available
in debug mode.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
I'm very surprised there are not autobuilder failures for mesa3d, since
this fails consistently for me on all configs that have python enabled.

 package/libxml2/libxml2.mk |    5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

diff --git a/package/libxml2/libxml2.mk b/package/libxml2/libxml2.mk
index fde3735..0c84652 100644
--- a/package/libxml2/libxml2.mk
+++ b/package/libxml2/libxml2.mk
@@ -26,7 +26,12 @@  LIBXML2_POST_INSTALL_STAGING_HOOKS += LIBXML2_STAGING_LIBXML2_CONFIG_FIXUP
 
 HOST_LIBXML2_DEPENDENCIES = host-pkgconf
 
+# mesa3d uses functions that are only available with debug
+ifeq ($(BR2_PACKAGE_MESA3D),y)
+HOST_LIBXML2_CONF_OPT = --with-debug
+else
 HOST_LIBXML2_CONF_OPT = --without-debug
+endif
 
 ifeq ($(BR2_PACKAGE_HOST_LIBXML2_PYTHON),y)
 HOST_LIBXML2_DEPENDENCIES += host-python