Bug#558733: [DebianGIS-dev] Bug#558733: [libgdal1-1.6.0] Reading tiff file causes segfault when linked also with geotiff

Raphael Hertzog hertzog at debian.org
Fri May 13 08:21:38 UTC 2011


On Fri, 13 May 2011, Francesco P. Lovergine wrote:
> On Fri, May 13, 2011 at 09:24:13AM +0200, Raphael Hertzog wrote:
> > There is an important difference though:
> > $ dpkg-buildflags --get LDFLAGS
> > 
> > $ DEB_VENDOR=ubuntu dpkg-buildflags --get LDFLAGS
> > -Wl,-Bsymbolic-functions
> > 
> > libgdal should be built with this linker option so that
> > it always uses the local copy of the geotiff functions
> > and not the one provided by the external library.
> 
> Is this a (less flexible) alternative to specify a version script?

It's just a linker option (see man ld):

   -Bsymbolic
       When creating a shared library, bind references to global symbols to the
       definition within the shared library, if any.  Normally, it is possible for a
       program linked against a shared library to override the definition within the
       shared library.  This option is only meaningful on ELF platforms which support
       shared libraries.

   -Bsymbolic-functions
       When creating a shared library, bind references to global function symbols to
       the definition within the shared library, if any.  This option is only
       meaningful on ELF platforms which support shared libraries.

It doesn't change the version associated to the symbols AFAIK.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
                      ▶ http://RaphaelHertzog.fr (Français)





More information about the Pkg-grass-devel mailing list