mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-18 19:00:37 +02:00
util: use RTLD_LOCAL with util_dl_open()
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>
This commit is contained in:
parent
8943a562e2
commit
623f64efc1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue