Ver Fonte

* Link libcrypto in with RTLD_GLOBAL so libssl can load symbols from it later (GH #19)

Bryan Drewery há 14 anos atrás
pai
commit
8ff72e5feb
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/libcrypto.c

+ 1 - 1
src/libcrypto.c

@@ -100,7 +100,7 @@ int load_libcrypto() {
 
   for (size_t i = 0; i < libs_list.length(); ++i) {
     dlerror(); // Clear Errors
-    libcrypto_handle = dlopen(bd::String(libs_list[i]).c_str(), RTLD_LAZY);
+    libcrypto_handle = dlopen(bd::String(libs_list[i]).c_str(), RTLD_LAZY|RTLD_GLOBAL);
     if (libcrypto_handle) {
       sdprintf("Found libcrypto: %s", bd::String(libs_list[i]).c_str());
       break;