summaryrefslogtreecommitdiff
path: root/gio/xdgmime
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-01-18 13:23:40 -0500
committerRyan Lortie <desrt@desrt.ca>2013-01-18 13:23:40 -0500
commit346aa683de6b84da4bb53a63693ec04858cbf952 (patch)
treebed7e82765f514f466e60f3242cec86534dca503 /gio/xdgmime
parent6f8f1f7097cbef698b4c7be5816bc9d3864ec744 (diff)
downloadglib-346aa683de6b84da4bb53a63693ec04858cbf952.tar.gz
Fix visibility for glib/ and gio/ submodules
We have various sub directories in glib/ and gio/ (eg: inotify, gnulib, pcre, xdgmime, etc.) that build convenience libraries that are then included into libglib and libgio. The files in these directories need to be built with the same visibility policy as the files in the first level directories, so add CFLAGS for them all. This wasn't a problem when the visibility flags were set directly in CFLAGS but then we had to deal with some modules that we built that we explicitly wanted to export symbols from. For now, we can keep things the way they are because it's less hacky and although it's a theoretical hazard to forget these CFLAGS, we rarely add new subdirectories to the build.
Diffstat (limited to 'gio/xdgmime')
-rw-r--r--gio/xdgmime/Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/gio/xdgmime/Makefile.am b/gio/xdgmime/Makefile.am
index 80783440d..fa39d05e5 100644
--- a/gio/xdgmime/Makefile.am
+++ b/gio/xdgmime/Makefile.am
@@ -4,6 +4,7 @@ AM_CPPFLAGS = -DXDG_PREFIX=_gio_xdg
noinst_LTLIBRARIES = libxdgmime.la
+libxdgmime_la_CFLAGS = $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
libxdgmime_la_SOURCES = \
xdgmime.c \
xdgmime.h \