[dconf/wip/reorg] common/: make 'hidden' variant of libdconf-common



commit edbcf639f2c1b87f32f6e251382e3a750b85670f
Author: Ryan Lortie <desrt desrt ca>
Date:   Sun Jul 8 22:30:47 2012 -0400

    common/: make 'hidden' variant of libdconf-common
    
    Compile a version of libdconf-common.a with -fvisibility=hidden.  This
    is included in the GSettings backend to prevent leaking the dconf client
    library symbols into the global namespace.

 common/.gitignore     |    1 +
 common/Makefile.am    |    5 ++++-
 gsettings/Makefile.am |    2 +-
 3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/common/.gitignore b/common/.gitignore
index 3285a15..8209281 100644
--- a/common/.gitignore
+++ b/common/.gitignore
@@ -1,2 +1,3 @@
 libdconf-common.a
+libdconf-common-hidden.a
 libdconf-common-shared.a
diff --git a/common/Makefile.am b/common/Makefile.am
index 10856f2..77903f1 100644
--- a/common/Makefile.am
+++ b/common/Makefile.am
@@ -3,7 +3,7 @@ include $(top_srcdir)/Makefile.gtester
 dconfinclude_HEADERS = \
 	dconf-paths.h
 
-noinst_LIBRARIES = libdconf-common.a libdconf-common-shared.a
+noinst_LIBRARIES = libdconf-common.a libdconf-common-shared.a libdconf-common-hidden.a
 
 libdconf_common_a_CFLAGS = $(glib_CFLAGS)
 libdconf_common_a_SOURCES = \
@@ -13,3 +13,6 @@ libdconf_common_a_SOURCES = \
 
 libdconf_common_shared_a_CFLAGS = $(libdconf_common_a_CFLAGS) -fPIC -DPIC
 libdconf_common_shared_a_SOURCES = $(libdconf_common_a_SOURCES)
+
+libdconf_common_hidden_a_CFLAGS = $(libdconf_common_a_CFLAGS) -fPIC -DPIC -fvisibility=hidden
+libdconf_common_hidden_a_SOURCES = $(libdconf_common_a_SOURCES)
diff --git a/gsettings/Makefile.am b/gsettings/Makefile.am
index 45fe320..929536a 100644
--- a/gsettings/Makefile.am
+++ b/gsettings/Makefile.am
@@ -6,7 +6,7 @@ libdconfsettings_so_LDADD = \
 	../engine/libdconf-engine-shared.a		\
 	../gvdb/libgvdb-shared.a			\
 	../gdbus/libdconf-gdbus-thread-shared.a		\
-	../common/libdconf-common-shared.a		\
+	../common/libdconf-common-hidden.a		\
 	../shm/libdconf-shm-shared.a			\
 	$(gio_LIBS)
 



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