[tracker] libtracker*: Do not export symbols from static libraries



commit 83f559ea4cf135d7ae3ab67f5657ca72ad2d5289
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Sep 1 13:11:36 2020 +0200

    libtracker*: Do not export symbols from static libraries
    
    We let libtracker-sparql tie everything together, specify that these
    libraries don't export symbols.

 src/libtracker-data/meson.build | 1 +
 src/libtracker-fts/meson.build  | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/libtracker-data/meson.build b/src/libtracker-data/meson.build
index 26ef8e2bd..b367edd12 100644
--- a/src/libtracker-data/meson.build
+++ b/src/libtracker-data/meson.build
@@ -36,6 +36,7 @@ libtracker_data = static_library('tracker-data',
     tracker_data_enums[0],
     tracker_data_enums[1],
     c_args: tracker_c_args,
+    gnu_symbol_visibility: 'hidden',
     # We do *not* want --no-undefined here, this library uses
     # symbols from libtracker-sparql, but does not mean it should
     # be linked to it.
diff --git a/src/libtracker-fts/meson.build b/src/libtracker-fts/meson.build
index 43900478a..44e514484 100644
--- a/src/libtracker-fts/meson.build
+++ b/src/libtracker-fts/meson.build
@@ -11,7 +11,8 @@ libtracker_fts = static_library('tracker-fts',
     'tracker-fts-tokenizer.c',
     libtracker_fts_fts5,
     dependencies: [tracker_common_dep],
-    c_args: tracker_c_args
+    c_args: tracker_c_args,
+    gnu_symbol_visibility: 'hidden'
 )
 
 tracker_fts_dep = declare_dependency(


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