diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2015-10-16 20:34:52 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-11-21 12:52:21 +0000 |
commit | 623f64efc1630fa6c287d4de107430835f9a5fa3 (patch) | |
tree | b731d67d37d157b74d7f6eb85b326cc74a0516f0 | |
parent | 8943a562e26091b13295af734f3034077fc825e1 (diff) |
util: use RTLD_LOCAL with util_dl_open()11.1-branchpoint
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>
-rw-r--r-- | src/gallium/auxiliary/util/u_dl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_dl.c b/src/gallium/auxiliary/util/u_dl.c index aca435d6ca..9b97d8dc4b 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 |