From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlvp3-0004Nj-Vj for qemu-devel@nongnu.org; Wed, 05 Nov 2014 03:20:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xlvox-0006ez-Qm for qemu-devel@nongnu.org; Wed, 05 Nov 2014 03:20:09 -0500 Received: from relay.parallels.com ([195.214.232.42]:40963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlvox-0006Vu-JF for qemu-devel@nongnu.org; Wed, 05 Nov 2014 03:20:03 -0500 Message-ID: <5459DD80.4040908@openvz.org> Date: Wed, 5 Nov 2014 11:19:12 +0300 From: "Denis V. Lunev" MIME-Version: 1.0 References: <1414589891-32736-1-git-send-email-den@openvz.org> <1414589891-32736-2-git-send-email-den@openvz.org> <5459D288.2010300@msgid.tls.msk.ru> In-Reply-To: <5459D288.2010300@msgid.tls.msk.ru> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/6] configure: add dependency from libxml2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: Kevin Wolf , Fam Zheng , Jeff Cody , qemu-devel@nongnu.org, Stefan Hajnoczi , Paolo Bonzini On 05/11/14 10:32, Michael Tokarev wrote: > 29.10.2014 16:38, Denis V. Lunev wrote: >> This dependency is required for adequate Parallels images support. >> Typically the disk consists of several images which are glued by >> XML disk descriptor. Also XML hides inside several important parameters >> which are not available in the image header. > [] >> +# check for libxml2 >> +if test "$libxml2" != "no" ; then >> + if $pkg_config --exists libxml-2.0; then >> + libxml2="yes" >> + libxml2_cflags=$($pkg_config --cflags libxml-2.0) >> + libxml2_libs=$($pkg_config --libs libxml-2.0) >> + QEMU_CFLAGS="$QEMU_CFLAGS $libxml2_cflags" >> + libs_softmmu="$libs_softmmu $libxml2_libs" >> + libs_tools="$libs_tools $libxml2_libs" > Please NO. NO NO NO NO :) > > Create a separate make variable, $LIBXML or something, > and add it as a parallels.o dependency, not libs_softmmu > etc. Ditto for the cflags. See examples -- libiscsi, > libcurl, librbd - in block/Makefile.objs. no prob > After that, I think we'll move parallels.o to be a module ;) > > (Cc'ing Fam) what does it mean for me? Could you point out the place to read/understand the difference. Thank you in advance, Den