util: use RTLD_LOCAL with util_dl_open()
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 16 Oct 2015 19:34:52 +0000 (20:34 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 21 Nov 2015 12:52:21 +0000 (12:52 +0000)
Otherwise we risk things blowing up due to conflicting symbols.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Rob Clark <robclark@freedesktop.org>
src/gallium/auxiliary/util/u_dl.c

index aca435d6cad960f507a9124805587a8ab10ae89e..9b97d8dc4b913ff61fd64ad2323dbffb944608c3 100644 (file)
@@ -45,7 +45,7 @@ struct util_dl_library *
 util_dl_open(const char *filename)
 {
 #if defined(PIPE_OS_UNIX)
-   return (struct util_dl_library *)dlopen(filename, RTLD_LAZY | RTLD_GLOBAL);
+   return (struct util_dl_library *)dlopen(filename, RTLD_LAZY | RTLD_LOCAL);
 #elif defined(PIPE_OS_WINDOWS)
    return (struct util_dl_library *)LoadLibraryA(filename);
 #else