[tracker/wip/carlosg/meson-fixes: 10/10] libtracker-control: Add linker script



commit 307faaa3303e2cb5dfe2d5bd9ed7d7694d800741
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Sep 5 00:14:23 2018 +0200

    libtracker-control: Add linker script
    
    So we only export the desired symbols

 src/libtracker-control/meson.build           | 4 ++++
 src/libtracker-control/tracker-control-2.map | 6 ++++++
 2 files changed, 10 insertions(+)
---
diff --git a/src/libtracker-control/meson.build b/src/libtracker-control/meson.build
index 438ddfa95..6081b2d5b 100644
--- a/src/libtracker-control/meson.build
+++ b/src/libtracker-control/meson.build
@@ -2,6 +2,9 @@ sources = ['tracker-miner-manager.c']
 
 headers = ['tracker-control.h', 'tracker-miner-manager.h']
 
+mapfile = 'tracker-control-2.map'
+vflag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile)
+
 libtracker_control = library('tracker-control-' + tracker_api_version,
     sources,
     tracker_common_enum_header,
@@ -13,6 +16,7 @@ libtracker_control = library('tracker-control-' + tracker_api_version,
     # https://github.com/mesonbuild/meson/issues/671
     dependencies: [gio, tracker_sparql_dep, tracker_miner_dep],
     include_directories: [commoninc, configinc, srcinc],
+    link_args: vflag,
     link_with: libtracker_common,
 )
 
diff --git a/src/libtracker-control/tracker-control-2.map b/src/libtracker-control/tracker-control-2.map
new file mode 100644
index 000000000..953287191
--- /dev/null
+++ b/src/libtracker-control/tracker-control-2.map
@@ -0,0 +1,6 @@
+{
+global:
+  tracker_miner_manager_*;
+local:
+  *;
+};


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]