From: Emil Velikov Date: Fri, 16 Oct 2015 19:34:52 +0000 (+0100) Subject: util: use RTLD_LOCAL with util_dl_open() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=623f64efc1630fa6c287d4de107430835f9a5fa3;p=mesa.git util: use RTLD_LOCAL with util_dl_open() Otherwise we risk things blowing up due to conflicting symbols. Signed-off-by: Emil Velikov Acked-by: Rob Clark --- diff --git a/src/gallium/auxiliary/util/u_dl.c b/src/gallium/auxiliary/util/u_dl.c index aca435d6cad..9b97d8dc4b9 100644 --- a/src/gallium/auxiliary/util/u_dl.c +++ b/src/gallium/auxiliary/util/u_dl.c @@ -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