From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bv45L-0008Lk-Vn for qemu-devel@nongnu.org; Fri, 14 Oct 2016 11:07:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bv45H-0007Lg-Qu for qemu-devel@nongnu.org; Fri, 14 Oct 2016 11:07:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bv45H-0007LZ-L7 for qemu-devel@nongnu.org; Fri, 14 Oct 2016 11:07:43 -0400 Date: Fri, 14 Oct 2016 23:07:39 +0800 From: Fam Zheng Message-ID: <20161014150739.GC17349@lemon> References: <14403a2.d42d.157c3176162.Coremail.lichunguang@hust.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14403a2.d42d.157c3176162.Coremail.lichunguang@hust.edu.cn> Subject: Re: [Qemu-devel] How to compile qemu with openssl List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chunguang Li Cc: qemu-devel@nongnu.org On Fri, 10/14 20:07, Chunguang Li wrote: > I need to use the SHA functions in migration/ram.c, > and I have included the head file > #include > Furthermore, I need to use flags "-lssl" and > "-lcrypto" when compile qemu, could anyone please > tell me where to add these two flags? There are "--extra-ldflags" and "--extra-cflags" options in ./configure, where you can add "-lssl" and "-lcrypto" to the compiling command lines. If you are adding a feature to QEMU instead of experimenting, you should modify ./configure to add a new pair of "--enable-XXXX" and "--disable-XXXX" options. For example, refer to how the "--enable-libiscsi" pair is handled in configure script. Particularly, features are automatically enabled if neither --enable-XXX nor --disable-XXX is specified but the library package dependencies are actually satisfied. Fam > > > Thanks, > Chunguang > > > -- > > >