From 7de48d7f6641d440f631d1b6d4c79ae480874f99 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 16 Aug 2011 09:14:53 -0700 Subject: [PATCH] plugin: Use weak reference for external debug statements --- include/plugin.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/plugin.h b/include/plugin.h index 74ac4c2..692a4e5 100644 --- a/include/plugin.h +++ b/include/plugin.h @@ -89,9 +89,9 @@ struct connman_plugin_desc { #else #define CONNMAN_PLUGIN_DEFINE(name, description, version, priority, init, exit) \ extern struct connman_debug_desc __start___debug[] \ - __attribute__ ((visibility("hidden"))); \ + __attribute__ ((weak, visibility("hidden"))); \ extern struct connman_debug_desc __stop___debug[] \ - __attribute__ ((visibility("hidden"))); \ + __attribute__ ((weak, visibility("hidden"))); \ extern struct connman_plugin_desc connman_plugin_desc \ __attribute__ ((visibility("default"))); \ struct connman_plugin_desc connman_plugin_desc = { \ -- 2.7.4