From 6a35bf6132d2d27ed507e894df9ba8d9e0dfc9f9 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Mon, 31 Aug 2009 05:06:05 +0200 Subject: [PATCH] Trim the list of exported symbols Add -export-symbols-regex '(^polkit_.*) to LDFLAGS for libpolkit* Signed-off-by: David Zeuthen --- src/polkit/Makefile.am | 2 ++ src/polkitagent/Makefile.am | 2 ++ src/polkitbackend/Makefile.am | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/polkit/Makefile.am b/src/polkit/Makefile.am index 436054b..2de31d6 100644 --- a/src/polkit/Makefile.am +++ b/src/polkit/Makefile.am @@ -106,6 +106,8 @@ libpolkit_gobject_1_la_LIBADD = \ $(EGG_DBUS_LIBS) \ $(NULL) +libpolkit_gobject_1_la_LDFLAGS = -export-symbols-regex '(^polkit_.*)' + if ENABLE_INTROSPECTION girdir = $(GIRDIR) gir_DATA = Polkit-1.0.gir diff --git a/src/polkitagent/Makefile.am b/src/polkitagent/Makefile.am index e64077d..0286c21 100644 --- a/src/polkitagent/Makefile.am +++ b/src/polkitagent/Makefile.am @@ -62,6 +62,8 @@ libpolkit_agent_1_la_LIBADD = \ $(EXPAT_LIBS) \ $(NULL) +libpolkit_agent_1_la_LDFLAGS = -export-symbols-regex '(^polkit_.*)' + libexec_PROGRAMS = polkit-agent-helper-1 polkit_agent_helper_1_SOURCES = \ diff --git a/src/polkitbackend/Makefile.am b/src/polkitbackend/Makefile.am index 6addc5a..c1ae1e5 100644 --- a/src/polkitbackend/Makefile.am +++ b/src/polkitbackend/Makefile.am @@ -80,6 +80,8 @@ libpolkit_backend_1_la_LIBADD = \ $(EXPAT_LIBS) \ $(NULL) +libpolkit_backend_1_la_LDFLAGS = -export-symbols-regex '(^polkit_.*)' + CLEANFILES = $(BUILT_SOURCES) localauthorityconfigdir = $(sysconfdir)/polkit-1/localauthority.conf.d -- 2.7.4