Browse Source

add RTLD_GLOBAL so loaded symbols are available to other modules

David Rose 21 years ago
parent
commit
b5f34628a7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dtool/src/dtoolutil/load_dso.cxx

+ 1 - 1
dtool/src/dtoolutil/load_dso.cxx

@@ -165,7 +165,7 @@ load_dso_error() {
 void *
 void *
 load_dso(const Filename &filename) {
 load_dso(const Filename &filename) {
   string os_specific = filename.to_os_specific();
   string os_specific = filename.to_os_specific();
-  return dlopen(os_specific.c_str(), RTLD_NOW);
+  return dlopen(os_specific.c_str(), RTLD_NOW | RTLD_GLOBAL);
 }
 }
 
 
 bool
 bool