Closed kbrenneman closed 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.
_GNU_SOURCE
RTLD_DEFAULT
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.
You have to define
_GNU_SOURCE
to useRTLD_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.