mirror of
https://github.com/yawut/SDL.git
synced 2026-06-11 03:03:18 -05:00
Explicitly use the RTLD_LOCAL flag since that's the behavior we want.
The default on Linux is RTLD_LOCAL, the default on Mac OS X is RTLD_GLOBAL.
This commit is contained in:
parent
d683eadde5
commit
f180aebaa0
|
|
@ -33,7 +33,7 @@
|
|||
void *
|
||||
SDL_LoadObject(const char *sofile)
|
||||
{
|
||||
void *handle = dlopen(sofile, RTLD_NOW);
|
||||
void *handle = dlopen(sofile, RTLD_NOW|RTLD_LOCAL);
|
||||
const char *loaderror = (char *) dlerror();
|
||||
if (handle == NULL) {
|
||||
SDL_SetError("Failed loading %s: %s", sofile, loaderror);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user