From 87b332e34c711ab01e9b573f04ae35ec11263619 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 16 Aug 2011 09:16:20 -0700 Subject: [PATCH] plugin: Use weak reference for external debug statements --- src/plugin.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin.h b/src/plugin.h index 4fbdd1daf..89c7b8515 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -42,9 +42,9 @@ struct bluetooth_plugin_desc { #else #define BLUETOOTH_PLUGIN_DEFINE(name, version, priority, init, exit) \ extern struct btd_debug_desc __start___debug[] \ - __attribute__ ((visibility("hidden"))); \ + __attribute__ ((weak, visibility("hidden"))); \ extern struct btd_debug_desc __stop___debug[] \ - __attribute__ ((visibility("hidden"))); \ + __attribute__ ((weak, visibility("hidden"))); \ extern struct bluetooth_plugin_desc bluetooth_plugin_desc \ __attribute__ ((visibility("default"))); \ struct bluetooth_plugin_desc bluetooth_plugin_desc = { \ -- 2.47.3