From: Remi Gacogne Date: Thu, 13 Mar 2025 09:30:57 +0000 (+0100) Subject: dnsdist: Export only FFI symbols, regardless of visibility X-Git-Tag: dnsdist-2.0.0-alpha1~14^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cda51e29c10b60ddef74aaa0d79a04b98ee8e0c0;p=thirdparty%2Fpdns.git dnsdist: Export only FFI symbols, regardless of visibility --- diff --git a/pdns/dnsdistdist/meson/lua/meson.build b/pdns/dnsdistdist/meson/lua/meson.build index f1cd312155..3f5a299dc1 100644 --- a/pdns/dnsdistdist/meson/lua/meson.build +++ b/pdns/dnsdistdist/meson/lua/meson.build @@ -42,8 +42,8 @@ conf.set('HAVE_LUA', dep_lua.found(), description: 'Lua') conf.set('HAVE_LUA_HPP', have_luahpp, description: 'Have ') if dep_lua.found() and dep_lua.name() == 'luajit' - # export all symbols with default visibility, to be able to use the Lua FFI interface - add_project_link_arguments('-rdynamic', language: ['c', 'cpp']) + # export FFI interfaces symbols, to be able to use the Lua FFI interface + add_project_link_arguments('-Wl,--export-dynamic-symbol=dnsdist_ffi_*', language: ['c', 'cpp']) endif summary('Lua', dep_lua.found(), bool_yn: true, section: 'Lua')