Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Explicitly use the RTLD_LOCAL flag since that's the behavior we want.
Browse files Browse the repository at this point in the history
The default on Linux is RTLD_LOCAL, the default on Mac OS X is RTLD_GLOBAL.
  • Loading branch information
slouken committed Aug 8, 2013
1 parent 32fcb5c commit 91fa592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loadso/dlopen/SDL_sysloadso.c
Expand Up @@ -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);
Expand Down

0 comments on commit 91fa592

Please sign in to comment.