[collectd] [PATCH] Added support to statically link collectd.

Sebastian Harl sh at tokkee.org
Tue Jul 15 09:08:37 CEST 2008


Hi Jesse,

On Tue, Jun 17, 2008 at 10:50:05PM +0200, Sebastian Harl wrote:
> The following changes were required to implement that:
> 
>  * Prepend the plugin name to the module_register functions of all plugins
>    when doing a static build: <plugin_name>_module_register.
> 
>    This has been implemented by introducing the macro MODULE_REGISTER() which
>    takes the plugin name as a single argument and defines the module_register
>    function appropriately. That macro is now used in all plugins to define the
>    module_register function.
> 
>  * Implement another versions of plugin_load() which handles the static case.
>    The new version uses lt_dlsym() to get the appropriate module_register
>    function by name from the program object file.

Did you give that a try? Did it work for you?

Cheers,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080715/04661781/attachment.pgp 


More information about the collectd mailing list