diff --git a/src/plugin.h b/src/plugin.h
index 4fbdd1d..89c7b85 100644
--- a/src/plugin.h
+++ b/src/plugin.h
#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 = { \