From ee7fac2a853294834a366ea4c38c6369308506d3 Mon Sep 17 00:00:00 2001 From: oga Date: Sat, 24 Jul 2010 18:16:40 +0000 Subject: [PATCH] When a dri driver dlopen()s libGL to try and get the correct symbols (in case libGL itself was dlopen()ed), it was using "libGL.so.1" (linux convention, doesn't work on OpenBSD). Change it to "libGL.so" so it has a hope in hell of working. I finally wrote this patch when trying to port perl's OpenGL modules ages ago and i finally decided that hacking each instance of dlopening libGL to use RTLD_GLOBAL was dumb. ok matthieu@ --- dist/Mesa/src/glx/dri_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/Mesa/src/glx/dri_common.c b/dist/Mesa/src/glx/dri_common.c index d6ce681d7..d26bdfff4 100644 --- a/dist/Mesa/src/glx/dri_common.c +++ b/dist/Mesa/src/glx/dri_common.c @@ -106,7 +106,7 @@ driOpenDriver(const char *driverName) int len; /* Attempt to make sure libGL symbols will be visible to the driver */ - glhandle = dlopen("libGL.so.1", RTLD_NOW | RTLD_GLOBAL); + glhandle = dlopen("libGL.so", RTLD_NOW | RTLD_GLOBAL); libPaths = NULL; if (geteuid() == getuid()) {