浏览代码

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

Bryan Drewery 14 年之前
父节点
当前提交
8ff72e5feb
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;