Commit 3eaf4fcd authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-sparql: Add linker script

So we only export the desired symbols
parent 70654ef8
mapfile = 'tracker-sparql-2.map'
vflag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile)
libtracker_sparql = library('tracker-sparql-' + tracker_api_version,
'../libtracker-common/libtracker-common.vapi',
'../libtracker-data/libtracker-data.vapi',
......@@ -9,6 +12,7 @@ libtracker_sparql = library('tracker-sparql-' + tracker_api_version,
install: true,
install_rpath: tracker_internal_libs_dir,
link_args: vflag,
link_whole: [libtracker_sparql_intermediate_c, libtracker_sparql_intermediate_vala],
# We need to pass this because link_whole doesn't trigger the .vapi
......
{
global:
tracker_sparql_connection_*;
tracker_sparql_cursor_*;
tracker_sparql_builder_*;
tracker_sparql_escape_*;
tracker_sparql_error_*;
tracker_sparql_value_*;
tracker_sparql_get_*;
tracker_namespace_manager_*;
tracker_resource_*;
tracker_notifier_*;
local:
*;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment