Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

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.
  • Loading branch information
slouken committed Aug 8, 2013
1 parent 32fcb5c commit 91fa5927c3f6dbca6aaddb910a6cafb1dc19da3b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/loadso/dlopen/SDL_sysloadso.c
@@ -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);

0 comments on commit 91fa592

Please sign in to comment.