NVIDIA / egl-wayland

The EGLStream-based Wayland external platform
MIT License
275 stars 43 forks source link

Fix possible build error with RTLD_DEFAULT #107

Closed kbrenneman closed 2 months ago

kbrenneman commented 2 months ago

You have to define _GNU_SOURCE to use RTLD_DEFAULT (at least with glibc), so this adds that macro to the Meson build.

As far as I can tell, the autotools scripts already set _GNU_SOURCE by default, so that doesn't need to be changed.

I also added an #ifdef around where RTLD_DEFAULT is used, so it'll be able to build on systems where RTLD_DEFAULT isn't provided at all.