[evince/wip/chpe/symbols-visibility: 22/22] build: Use symbol visibility to hide symbols in the nautilus module




commit 30424ec653ce64fecefff5b25549981300ea5668
Author: Christian Persch <chpe src gnome org>
Date:   Sat Nov 20 22:40:56 2021 +0100

    build: Use symbol visibility to hide symbols in the nautilus module
    
    Use the visibility attribute to hide all symbols from private
    convenience static libraries used in the backends.

 properties/ev-properties-main.c | 4 ++++
 properties/meson.build          | 2 ++
 2 files changed, 6 insertions(+)
---
diff --git a/properties/ev-properties-main.c b/properties/ev-properties-main.c
index 9aacdf28d..5c6095dd1 100644
--- a/properties/ev-properties-main.c
+++ b/properties/ev-properties-main.c
@@ -144,6 +144,8 @@ end:
 }
 
 /* --- extension interface --- */
+
+EV_PUBLIC
 void
 nautilus_module_initialize (GTypeModule *module)
 {
@@ -153,12 +155,14 @@ nautilus_module_initialize (GTypeModule *module)
         ev_init ();
 }
 
+EV_PUBLIC
 void
 nautilus_module_shutdown (void)
 {
         ev_shutdown ();
 }
 
+EV_PUBLIC
 void
 nautilus_module_list_types (const GType **types,
                             int          *num_types)
diff --git a/properties/meson.build b/properties/meson.build
index 50e65bee2..f111cc36f 100644
--- a/properties/meson.build
+++ b/properties/meson.build
@@ -3,6 +3,7 @@ libevproperties = static_library(
   sources: 'ev-properties-view.c',
   include_directories: top_inc,
   dependencies: libevdocument_dep,
+  gnu_symbol_visibility: 'hidden',
 )
 
 libevproperties_dep = declare_dependency(
@@ -26,5 +27,6 @@ if enable_nautilus
     install: true,
     install_dir: nautilus_extension_dir,
     name_suffix: name_suffix,
+    gnu_symbol_visibility: 'hidden',
   )
 endif


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