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:
Sam Lantinga 2013-08-07 17:26:28 -07:00
parent da3326eb95
commit 88b0f42281

View file

@ -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);