summaryrefslogtreecommitdiff
path: root/tests/module-test.c
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-01-14 23:24:53 -0500
committerRyan Lortie <desrt@desrt.ca>2013-01-14 23:31:59 -0500
commit5d42fdd068bddaaf7e42b7aaca2c15e931ebf3c5 (patch)
treec0d7a9e960a1ad6dbb522818ee9b04e54c8cf18c /tests/module-test.c
parent7e00f381916cab6ba13f1d430310802cf6b9c726 (diff)
downloadglib-5d42fdd068bddaaf7e42b7aaca2c15e931ebf3c5.tar.gz
visibility: Use a separate CFLAGS variable
We only want to control the default visibility for our five main installable libraries: libglib, libgthread, libgmodule, libgobject, libgio. We should therefore only set -fvisibility=hidden when building those. Use a separate substitution variable for this purpose. Using CFLAGS directly leads to some modules built in testcases not exporting their symbols (and then the tests fail). It also affects the fam file monitoring module. Colin had originally done it this way in his visibility patch series but I failed to understand why so I didn't copy it. Now I do. Also: revert changes made to two testcases in an attempt to work around this issue. https://bugzilla.gnome.org/show_bug.cgi?id=691756
Diffstat (limited to 'tests/module-test.c')
-rw-r--r--tests/module-test.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/module-test.c b/tests/module-test.c
index 4b195d3f1..dd99b710f 100644
--- a/tests/module-test.c
+++ b/tests/module-test.c
@@ -27,16 +27,14 @@
#undef G_DISABLE_ASSERT
#undef G_LOG_DOMAIN
-#include "config.h"
-
#include <gmodule.h>
#include <string.h>
gchar* global_state;
-_GLIB_EXTERN void g_clash_func (void);
+G_MODULE_EXPORT void g_clash_func (void);
-_GLIB_EXTERN void
+G_MODULE_EXPORT void
g_clash_func (void)
{
global_state = "global clash";