[Pkg-gmagick-im-team] Bug#587393: Imagemagick should use libtool in order to create a public/private abi
Bastien ROUCARIES
roucaries.bastien at gmail.com
Mon Jun 28 09:26:12 UTC 2010
package: src:imagemagick
severity: grave
Upstream break a lot the ABI removing or changing the definition of the symbols
In order to improve the situation they should define a proper private
public abi.
Libtool could help here:
The best answer in this case is to make use of its feature to hide all
symbols unless explicitly listed
as public. (The symbols are still usable from within the library
itself. It'll get tricky if some symbols ought to be available to
coders in a
modular build, but not to applications, though.) To make use of the
feature, one needs to create a symbols file like magick-public.sym or
wand-public.sym, listing public symbols one at a line. It is passed to
libtool via LDFLAGS using option -export-symbols, eg.
libwand_la_LDFLAGS = (...) -export-symbols wand-public.sym
The symbols file needs to be updated as API functions are added and
removed.
Bastien
More information about the Pkg-gmagick-im-team
mailing list