Ver Fonte

Merge branch 'dynamic-linking'

* dynamic-linking:
  * Only link libcrypto statically if the OS supports it
Bryan Drewery há 15 anos atrás
pai
commit
f1c95d09aa
2 ficheiros alterados com 177 adições e 172 exclusões
  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)

Diff do ficheiro suprimidas por serem muito extensas
+ 170 - 171
configure


Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff