Commit 22db2b48 authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-miner: Add linker script

So we only export the desired symbols
parent 3eaf4fcd
......@@ -52,6 +52,9 @@ if have_network_manager
tracker_miner_dependencies += network_manager
endif
mapfile = 'tracker-miner-2.map'
vflag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile)
libtracker_miner = library(
'tracker-miner-' + tracker_api_version,
miner_enums[0], miner_enums[1], miner_sources,
......@@ -63,6 +66,7 @@ libtracker_miner = library(
# https://github.com/mesonbuild/meson/issues/671
include_directories: [commoninc, configinc, srcinc],
dependencies: [tracker_sparql_dep] + tracker_miner_dependencies,
link_args: vflag,
link_with: [libtracker_miner_private],
)
......
{
global:
tracker_data_provider_*;
tracker_miner_*;
tracker_indexing_tree_*;
tracker_directory_flags_*;
tracker_filter_type_*;
tracker_filter_policy_*;
tracker_network_type_*;
tracker_decorator_*;
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