summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-08-16 09:15:53 -0700
committerMarcel Holtmann <marcel@holtmann.org>2011-08-16 09:15:53 -0700
commit152529ac7512aa6918aa0e97cf7093972c27c410 (patch)
tree8bb65609aa894c83427123b5a38f53c9bc570be7
parent28b004993002457974fdbb111dd2711c211511ee (diff)
downloadofono-152529ac7512aa6918aa0e97cf7093972c27c410.tar.bz2
plugin: Use weak reference for external debug statements
-rw-r--r--include/plugin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/plugin.h b/include/plugin.h
index ca273beb..288901bf 100644
--- a/include/plugin.h
+++ b/include/plugin.h
@@ -73,9 +73,9 @@ struct ofono_plugin_desc {
#else
#define OFONO_PLUGIN_DEFINE(name, description, version, priority, init, exit) \
extern struct ofono_debug_desc __start___debug[] \
- __attribute__ ((visibility("hidden"))); \
+ __attribute__ ((weak, visibility("hidden"))); \
extern struct ofono_debug_desc __stop___debug[] \
- __attribute__ ((visibility("hidden"))); \
+ __attribute__ ((weak, visibility("hidden"))); \
extern struct ofono_plugin_desc ofono_plugin_desc \
__attribute__ ((visibility("default"))); \
struct ofono_plugin_desc ofono_plugin_desc = { \