From 395d1f509ac879dfedb9c4ef05de3f3293cf9b13 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Sun, 8 Jul 2012 22:30:47 -0400 Subject: 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/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'common/Makefile.am') 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) -- cgit v1.2.1