avisynth: Use RTLD_LOCAL instead of RTLD_GLOBAL

There shouldn't be any need to add the loaded libraries to the global
symbol namespace.

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö 2015-01-01 00:58:06 +02:00
parent 470c9db11f
commit f2ad1495f2

View File

@ -52,7 +52,7 @@
#define AVISYNTH_LIB "libavxsynth.so" #define AVISYNTH_LIB "libavxsynth.so"
#endif #endif
#define LoadLibrary(x) dlopen(x, RTLD_NOW | RTLD_GLOBAL) #define LoadLibrary(x) dlopen(x, RTLD_NOW | RTLD_LOCAL)
#define GetProcAddress dlsym #define GetProcAddress dlsym
#define FreeLibrary dlclose #define FreeLibrary dlclose
#endif #endif