cvs commit: src/lib/libc/citrus citrus_ctype_local.h citrus_iconv_local.h citrus_mapper_local.h citrus_module.c citrus_module.h citrus_none.c citrus_stdenc_local.h

Joerg Sonnenberger joerg at britannica.bec.de
Tue Jul 5 05:39:02 PDT 2005


On Mon, Jul 04, 2005 at 08:04:39AM -0700, Matthew Dillon wrote:
> 
> :On Mon, Jul 04, 2005 at 01:02:43AM -0700, Joerg Sonnenberger wrote:
> :>   Log:
> :>   Allow inclusion of Citrus modules in statically linked binaries.
> :>   
> :>   To achieve this, ensure that _citrus_module_$MOD is referenced
> :>   from the binary and link with -L/usr/lib/i18n -l$MOD for all
> :>   modules you are interested in.
> :
> :You can try it with the attached Makefile fragment.
> :
> :Joerg
> 
>     I think to support this officially we need to collect that whole 
>     mess into a single .a library for use in statically linked programs,
>     yes ?  Maybe call it 'citrus_static' so one would be able to link
>     simply with -lcitrus_static.

Even that is not enough, since you have to trigger the reading somehow.
LD is not clever enough to read libraries for available linker sets
automatically. I was thinking about adding the necessary magic to bsd.prog.mk
(like STATIC_CITRUS = no | all | list of modules) and do the magic based on
that.

Joerg





More information about the Commits mailing list