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

Re: Library packages that export too many symbols

Hi, Josselin Mouette wrote:

> Maybe everyone here already knows the problem and its solution, but I
> can't remember hearing of it, and I guess it cannot hurt to remind library
> packages maintainers to have a look at their objdump output, to check
> whether they are in this case. Indeed, I found the solution is rather
> trivial if the package uses libtool.
> For example, it took one line in SDL_Mixer's Makefile.am:
>         libSDL_mixer_la_LDFLAGS = -export-symbols-regex Mix_.*

Another option is to use a version script. For instance, gnutls11 has

   global: gnutls*;
   local: *;

which is a bit easier to understand+verify if the library doesn't have a
clean symbol prefix.

Be sure to submit your changes to Upstream. In fact, while you're at it,
using versioned symbols might be a good idea anyway.

Matthias Urlichs

Reply to: