]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
Ensure plugins load their own functions
authorMattia Basaglia <mattia.basaglia@gmail.com>
Thu, 30 Jul 2015 10:54:22 +0000 (12:54 +0200)
committerMattia Basaglia <mattia.basaglia@gmail.com>
Thu, 30 Jul 2015 10:54:22 +0000 (12:54 +0200)
radiant/server.cpp

index 10e9cf735595ed2860e2159987beaac2ea10b849..00221d7d7d165f49621a042f8b5bdd73593e19ce 100644 (file)
@@ -151,7 +151,7 @@ public:
 typedef int ( *FunctionPointer )();
 
 DynamicLibrary( const char* filename ){
-       m_library = dlopen( filename, RTLD_NOW );
+       m_library = dlopen( filename, RTLD_NOW|RTLD_LOCAL|RTLD_DEEPBIND );
        if ( !m_library )
        {
                globalErrorStream() << "LoadLibrary failed: '" << filename << "'\n";