qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] How to compile qemu with openssl


From: Fam Zheng
Subject: Re: [Qemu-devel] How to compile qemu with openssl
Date: Fri, 14 Oct 2016 23:07:39 +0800
User-agent: Mutt/1.7.0 (2016-08-17)

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 <openssl/sha.h>
> 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
> 
> 
> --
> 
> 
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]