DragonFly BSD
DragonFly commits List (threaded) for 2005-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: 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

From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Tue, 5 Jul 2005 14:37:04 +0200
Mail-followup-to: commits@crater.dragonflybsd.org

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


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]