From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkDTx-0005iM-6F for qemu-devel@nongnu.org; Tue, 13 May 2014 10:15:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkDTs-0003tw-Bs for qemu-devel@nongnu.org; Tue, 13 May 2014 10:15:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkDTs-0003tr-48 for qemu-devel@nongnu.org; Tue, 13 May 2014 10:14:56 -0400 Date: Tue, 13 May 2014 22:15:00 +0800 From: Fam Zheng Message-ID: <20140513141500.GA13510@T430.nay.redhat.com> References: <1399813620-26668-1-git-send-email-mjt@msgid.tls.msk.ru> <53721867.5080404@kamp.de> <20140513131909.GA28745@T430.nay.redhat.com> <53721FB3.8020407@kamp.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53721FB3.8020407@kamp.de> Subject: Re: [Qemu-devel] [PATCH] block/nfs: use per-object vars and make it modular List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: Michael Tokarev , qemu-devel@nongnu.org On Tue, 05/13 15:35, Peter Lieven wrote: > On 13.05.2014 15:19, Fam Zheng wrote: > >On Tue, 05/13 15:04, Peter Lieven wrote: > >>On 11.05.2014 15:07, Michael Tokarev wrote: > >>>nfs block module uses libnfs and uses pkg-config to determine > >>>its build information. Somehow it used only --libs, not --cflags, > >>>and added those libs into global $LIBS, instead of using per-object > >>>variable. > >>the missing cflags stuff was due to a bug in the libnfs.pc file. > >> > >>https://github.com/sahlberg/libnfs/commit/d47c989d886e5398143d43d3b6d25fdf7210cb11 > >> > >>as there where no special flags I dropped it. this was before we realized > >>that we had to depend on a newer libnfs version anyway. thanks for spotting this. > >> > >>>Use both --libs and --cflags, use them as per-object variable, > >>>and finally make block/nfs.o to be modular. > >>can you explain the modular stuff? > >As what is possible with iscsi, gluster and curl now, with this change nfs.o is > >possible to be built to a separate block-nfs.so, if configured as > >--enable-modules, and loaded on program start. > > Aah okay. This is something new and not something I did wrong when the patch was submitted? Absolutely. Fam