Bruno Haible <[EMAIL PROTECTED]> writes:

> 3) Two different libraries, say, libguile and libgettextpo, using auxiliary
>    functions from gnulib. It may happen that libguile and libgettextpo both
>    define rpl_strcasecmp, and that this leads to link-time issues.
>
>    For this we have nothing prepackaged in gnulib-tool, but there is a
>    Makefile snippet that does the necessary #defines, i.e.
>       #define rpl_strcasecmp scm_strcasecmp
>    in guile's config.h, and
>       #define rpl_strcasecmp libgettextpo_strcasecmp
>    in libgettextpo's config.h. You find this code in the 'config.h' rule in
>    
> http://cvs.savannah.gnu.org/viewvc/gettext/gettext-tools/libgettextpo/Makefile.am?revision=1.13&root=gettext&view=text

Nice, I wasn't aware of that.  Would it be possible to merge this into
gnulib somehow?  I'm running into a similar problem when linking gsasl
and gnutls (which both uses gnulib symbols) statically on uClinux.

If you know what you are doing, and the gnulib file versions in both
libraries are in sync, you could avoid the renaming step, and have both
libraries (gsasl+gnutls) use only one set of gnulib symbols.  This would
reduce the size, which can be important for uClinux systems.  This seems
more complicated and error-prone, though.

/Simon


Reply via email to