From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlv4y-0001oY-6B for qemu-devel@nongnu.org; Wed, 05 Nov 2014 02:32:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xlv4s-0007rm-0i for qemu-devel@nongnu.org; Wed, 05 Nov 2014 02:32:32 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:55583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlv4r-0007rW-DM for qemu-devel@nongnu.org; Wed, 05 Nov 2014 02:32:25 -0500 Message-ID: <5459D288.2010300@msgid.tls.msk.ru> Date: Wed, 05 Nov 2014 10:32:24 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <1414589891-32736-1-git-send-email-den@openvz.org> <1414589891-32736-2-git-send-email-den@openvz.org> In-Reply-To: <1414589891-32736-2-git-send-email-den@openvz.org> Content-Type: text/plain; charset=windows-1252 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: "Denis V. Lunev" Cc: Kevin Wolf , Fam Zheng , Jeff Cody , qemu-devel@nongnu.org, Stefan Hajnoczi , Paolo Bonzini 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. After that, I think we'll move parallels.o to be a module ;) (Cc'ing Fam) Thanks, /mjt