[Top][All Lists]

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

Re: Multiply exported Gnulib symbols

From: Simon Josefsson
Subject: Re: Multiply exported Gnulib symbols
Date: Thu, 23 Aug 2007 10:36:28 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

Bruno Haible <address@hidden> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]