From patchwork Tue Dec 11 11:10:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v2] host-libxml2: enable debug for mesa3d Date: Tue, 11 Dec 2012 01:10:07 -0000 From: Arnout Vandecappelle X-Patchwork-Id: 205174 Message-Id: <1355224207-21745-1-git-send-email-arnout@mind.be> To: buildroot@busybox.net 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. Note that this is the second "temporary" hack to make mesa3d work. See http://lists.busybox.net/pipermail/buildroot/2012-November/061936.html for possible more fundamental solutions. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- I'm very surprised there are not autobuilder failures for mesa3d, since this fails consistently for me on all configs that have python enabled. v2: Added reference to mesa3d discussion in commit message. package/libxml2/libxml2.mk | 5 +++++ 1 file changed, 5 insertions(+) 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