From: Fam Zheng <famz@redhat.com>
To: Chunguang Li <lichunguang@hust.edu.cn>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] How to compile qemu with openssl
Date: Fri, 14 Oct 2016 23:07:39 +0800 [thread overview]
Message-ID: <20161014150739.GC17349@lemon> (raw)
In-Reply-To: <14403a2.d42d.157c3176162.Coremail.lichunguang@hust.edu.cn>
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
>
>
> --
>
>
>
next prev parent reply other threads:[~2016-10-14 15:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-14 12:07 [Qemu-devel] How to compile qemu with openssl Chunguang Li
2016-10-14 15:07 ` Fam Zheng [this message]
2016-10-14 17:45 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161014150739.GC17349@lemon \
--to=famz@redhat.com \
--cc=lichunguang@hust.edu.cn \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.