From fad3d489121069119e3effd4f1bf4b901d986ef3 Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Sat, 24 Jul 2010 18:16:41 +0000 Subject: 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(-) (limited to 'dist/Mesa') 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()) { -- cgit v1.2.3