anholt / libepoxy

Epoxy is a library for handling OpenGL function pointer management for you
Other
680 stars 161 forks source link

Make epoxy_load_{egl,glx} load libraries if they exist #170

Closed nwnk closed 6 years ago

nwnk commented 6 years ago

This explicitly separates the dlopen and dlsym phases of every library, exposes the GLX and EGL loading logic to the rest of the library, and treats RTLD_NOLOAD and fatal-lookup-error as separate flags.

ilovezfs commented 6 years ago

@ebassi @nwnk this PR broke libepoxy on macOS. The problem is that OPENGL_LIB gets redefined again lower down

https://github.com/nwnk/libepoxy/blob/90db0069b43f40c071510fa4e3b67f6affebd8e2/src/dispatch_common.c#L199

So at run time you get

Couldn't open libOpenGL.so.0: dlopen(libOpenGL.so.0, 5): image not found
ebassi commented 6 years ago

Please, @ilovezfs: open a new issue about this.

ilovezfs commented 6 years ago

Where is best? Will do.

ebassi commented 6 years ago

@ilovezfs Create a new issue on this repo.

ilovezfs commented 6 years ago

@ebassi done: https://github.com/anholt/libepoxy/issues/176