]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Properly export FFI functions when building with `meson` 15278/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 11 Mar 2025 10:15:35 +0000 (11:15 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 11 Mar 2025 12:22:52 +0000 (13:22 +0100)
commit0aa7c0053a7d8c19a709b9da347f5093599dd098
tree5652cec7bad90dd005a30a84f664c06f6d352b43
parentc10ec4045e3e1707ce8b30240dc36e7b357110b7
dnsdist: Properly export FFI functions when building with `meson`

Some FFI functions are not used by the `dnsdist` binary, but they are
exported nevertheless to be usable by Lua code. The visibility of
such functions is correctly set to `public`, but our `meson` build
was putting these functions in an intermediate, static library then
linking that library in the `dnsdist` binary, and unfortunately
symbol visibility is ignored by the linker in this case.
So this commit moves the FFI function out of the shared library and
link them directly into the `dnsdist` binary, making them available
to Lua again.
pdns/dnsdistdist/meson.build