diff options
author | Alexander Larsson <alexander.larsson@gmail.com> | 2016-01-29 09:01:37 +0100 |
---|---|---|
committer | Alexander Larsson <alexander.larsson@gmail.com> | 2016-01-29 09:01:37 +0100 |
commit | a754db12a2af47fde2cce8b330d9f402a0d8369f (patch) | |
tree | 3c21dc76a2bb80720e45fb3102f7fd2248efa058 | |
parent | 7f20b446792c74944c3ee8a2b1b554f1574c3764 (diff) | |
parent | 73b0adfe0aa84cee46db760f9ebb3fbb03b9655a (diff) | |
download | xdg-app-a754db12a2af47fde2cce8b330d9f402a0d8369f.tar.gz |
Merge pull request #106 from smcv/symbol-hiding
Hide non-public symbols from libglnx and libxdgapp-common
-rw-r--r-- | Makefile.am | 6 | ||||
-rw-r--r-- | common/Makefile.am.inc | 10 | ||||
-rw-r--r-- | common/xdg-app-portal-error.h | 2 |
3 files changed, 15 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index 0e2b606..46e4f91 100644 --- a/Makefile.am +++ b/Makefile.am @@ -46,7 +46,11 @@ EXTRA_DIST = lib_LTLIBRARIES = noinst_LTLIBRARIES = libglnx.la libglnx_srcpath := $(srcdir)/libglnx -libglnx_cflags := $(BASE_CFLAGS) "-I$(libglnx_srcpath)" +libglnx_cflags := \ + $(BASE_CFLAGS) \ + "-I$(libglnx_srcpath)" \ + $(HIDDEN_VISIBILITY_CFLAGS) \ + $(NULL) libglnx_libs := $(BASE_LIBS) include libglnx/Makefile-libglnx.am.inc diff --git a/common/Makefile.am.inc b/common/Makefile.am.inc index 7ce7e84..8d28c73 100644 --- a/common/Makefile.am.inc +++ b/common/Makefile.am.inc @@ -43,7 +43,15 @@ libxdgapp_common_la_SOURCES = \ $(systemd_dbus_built_sources) \ $(NULL) -libxdgapp_common_la_CFLAGS = $(AM_CFLAGS) $(BASE_CFLAGS) $(OSTREE_CFLAGS) $(SOUP_CFLAGS) $(XAUTH_CFLAGS) -I$(srcdir)/dbus-proxy +libxdgapp_common_la_CFLAGS = \ + $(AM_CFLAGS) \ + $(BASE_CFLAGS) \ + $(HIDDEN_VISIBILITY_CFLAGS) \ + $(OSTREE_CFLAGS) \ + $(SOUP_CFLAGS) \ + $(XAUTH_CFLAGS) \ + -I$(srcdir)/dbus-proxy \ + $(NULL) libxdgapp_common_la_LIBADD = libglnx.la $(BASE_LIBS) $(OSTREE_LIBS) $(SOUP_LIBS) $(XAUTH_LIBS) bin_PROGRAMS += \ diff --git a/common/xdg-app-portal-error.h b/common/xdg-app-portal-error.h index 4ae8ddb..ad7812c 100644 --- a/common/xdg-app-portal-error.h +++ b/common/xdg-app-portal-error.h @@ -42,7 +42,7 @@ typedef enum { #define XDG_APP_PORTAL_ERROR xdg_app_error_quark() -GQuark xdg_app_error_quark (void); +XDG_APP_EXTERN GQuark xdg_app_error_quark (void); G_END_DECLS |