From cda51e29c10b60ddef74aaa0d79a04b98ee8e0c0 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 13 Mar 2025 10:30:57 +0100 Subject: [PATCH] dnsdist: Export only FFI symbols, regardless of visibility --- pdns/dnsdistdist/meson/lua/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') -- 2.47.2