--- src/dispatch_common.c.orig 2018-10-04 16:12:11.000000000 -0700 +++ src/dispatch_common.c 2018-10-09 14:09:38.000000000 -0700 @@ -174,7 +174,7 @@ #include "dispatch_common.h" #if defined(__APPLE__) -#define GLX_LIB "/opt/X11/lib/libGL.1.dylib" +#define GLX_LIB "@PREFIX@/lib/libGL.1.dylib" #define OPENGL_LIB "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL" #define GLES1_LIB "libGLESv1_CM.so" #define GLES2_LIB "libGLESv2.so"