summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-10-05 21:15:07 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2014-10-05 21:15:07 +0200
commitb577b7119aa1f57c4db7fd254c2b5b197e7451d2 (patch)
tree35a414060da573f1d761dad2bb03f00e93b8bbef /include
parentb0e4bb27b2f5cb2b54cb615a3100ef8aa4474600 (diff)
downloadcrawler-b577b7119aa1f57c4db7fd254c2b5b197e7451d2.tar.gz
crawler-b577b7119aa1f57c4db7fd254c2b5b197e7451d2.tar.bz2
must load all symbols of a C++/Lua module, otherwise the lua_open function
can't be called from the Lua VM during module initialization
Diffstat (limited to 'include')
-rwxr-xr-xinclude/module/ModuleLoader.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/module/ModuleLoader.hpp b/include/module/ModuleLoader.hpp
index 6eb9079..21905ec 100755
--- a/include/module/ModuleLoader.hpp
+++ b/include/module/ModuleLoader.hpp
@@ -50,7 +50,7 @@ class BaseModuleLoader {
for( std::vector<std::string>::const_iterator it = files.begin( ); it != files.end( ); it++ ) {
#ifndef _WIN32
- m.handle = dlopen( it->c_str( ), RTLD_NOW | RTLD_LOCAL );
+ m.handle = dlopen( it->c_str( ), RTLD_NOW | RTLD_GLOBAL );
#else
m.handle = LoadLibrary( it->c_str( ) );
#endif