Skip to contentSkip to conversation

rbd: don't link with -lcrypto

PATCH In review Aurelien Jarno 2 participants 2 messages Mar 7, 2011 – Mar 13, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rbd: don't link with -lcrypto

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 <[email protected]>
---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
configure +1 -1
index ef51a58..5932e39 100755
@@ -1801,7 +1801,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
Signature · 1 line
1.7.2.3
Reviewed-by on v1 1/1
#1 lore raw

You are right, libcrypto can be omitted.

(Recent versions of ceph use crypto++ anyway.)

Thanks, Christian

2011/3/7 Aurelien Jarno <[email protected]>:

Quoted 32 lines

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 <[email protected]>

---
 configure |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
configure +0 -0
index ef51a58..5932e39 100755
@@ -1801,7 +1801,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
--
1.7.2.3