Sfoglia il codice sorgente

Merge branch 'dynamic-linking'

* dynamic-linking:
  * Only link libcrypto statically if the OS supports it
Bryan Drewery 15 anni fa
parent
commit
f1c95d09aa
2 ha cambiato i file con 177 aggiunte e 172 eliminazioni
  1. 7 1
      autotools/includes/acinclude.m4
  2. 170 171
      configure

+ 7 - 1
autotools/includes/acinclude.m4

@@ -529,7 +529,13 @@ AC_TRY_COMPILE([#include <openssl/opensslv.h>],[
 
 CXX="$CXX $SSL_LIBS"
 AC_CHECK_LIB(crypto, AES_encrypt,
-[SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"],
+[
+  if test "$USE_STATIC" = "yes"; then
+    SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
+  else
+    SSL_LIBS="$SSL_LIBS -lcrypto"
+  fi
+],
 [
   AC_MSG_RESULT([not found.])
   AC_MSG_ERROR([Libcrypto/openssl is required.], 1)

File diff suppressed because it is too large
+ 170 - 171
configure


Some files were not shown because too many files changed in this diff