]> git.proxmox.com Git - qemu.git/commitdiff
rbd: don't link with -lcrypto
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 7 Mar 2011 06:17:49 +0000 (07:17 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 21 Mar 2011 20:27:54 +0000 (21:27 +0100)
rbd support tries to both link with -lrados and -lcrypto. While the
first one is of course necessary, the second is not necessary (only
librados ifself needs to link with libcrypto).

This fixes a licensing issue: qemu as a whole is GPL v2, and thus can't
be linked with OpenSSL without an exception in the license, which seems
difficult to get given the number of persons involved.

Cc: Christian Brunner <chb@muc.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
configure

index a166de07fc359eb7c19acb985f972119cf67b4ec..b523a6ef948b65b6b3c7e632902db9f077f27b41 100755 (executable)
--- a/configure
+++ b/configure
@@ -1802,7 +1802,7 @@ if test "$rbd" != "no" ; then
 #include <rados/librados.h>
 int main(void) { rados_initialize(0, NULL); return 0; }
 EOF
-  rbd_libs="-lrados -lcrypto"
+  rbd_libs="-lrados"
   if compile_prog "" "$rbd_libs" ; then
     librados_too_old=no
     cat > $TMPC <<EOF