* [Qemu-devel] How to compile qemu with openssl
@ 2016-10-14 12:07 Chunguang Li
2016-10-14 15:07 ` Fam Zheng
0 siblings, 1 reply; 3+ messages in thread
From: Chunguang Li @ 2016-10-14 12:07 UTC (permalink / raw)
To: qemu-devel
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?
Thanks,
Chunguang
--
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] How to compile qemu with openssl
2016-10-14 12:07 [Qemu-devel] How to compile qemu with openssl Chunguang Li
@ 2016-10-14 15:07 ` Fam Zheng
2016-10-14 17:45 ` Peter Maydell
0 siblings, 1 reply; 3+ messages in thread
From: Fam Zheng @ 2016-10-14 15:07 UTC (permalink / raw)
To: Chunguang Li; +Cc: qemu-devel
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
>
>
> --
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] How to compile qemu with openssl
2016-10-14 15:07 ` Fam Zheng
@ 2016-10-14 17:45 ` Peter Maydell
0 siblings, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2016-10-14 17:45 UTC (permalink / raw)
To: Fam Zheng; +Cc: Chunguang Li, QEMU Developers
On 14 October 2016 at 16:07, Fam Zheng <famz@redhat.com> wrote:
> 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.
We probably don't really want to add a feature that
links against OpenSSL anyway -- their FAQ suggests
it is GPL-incompatible:
https://www.openssl.org/docs/faq.html#LEGAL2
(disclaimer: based on a vague recollection of there
being an issue and 30 seconds googling)
thanks
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-10-14 17:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-14 12:07 [Qemu-devel] How to compile qemu with openssl Chunguang Li
2016-10-14 15:07 ` Fam Zheng
2016-10-14 17:45 ` Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).