Try dlsym(RTLD_DEFAULT) first when finding symbols.

The previous mechanism failed when finding drm symbols now that libdrm has
moved to being linked by libdri instead of being linked into the server.
(cherry picked from aab2ca2042 commit)
This commit is contained in:
Eric Anholt 2006-12-21 09:16:19 -08:00 committed by Adam Jackson
parent cf70493520
commit fd77f9cbba

View File

@ -113,6 +113,10 @@ DLFindSymbol(const char *name)
DLModuleList *l;
void *p;
p = dlsym(RTLD_DEFAULT, name);
if (p != NULL)
return p;
for (l = dlModuleList; l != NULL; l = l->next) {
p = DLFindSymbolLocal(l->module, name);
if (p)