[GRASS5] release branch testers wanted (tarball provided)
Glynn Clements
glynn.clements at virgin.net
Tue Aug 27 11:14:12 EDT 2002
Markus Neteler wrote:
> > > my build-script now compiles separated a 24bit PNG driver:
> >
> > > I had to hardcode library paths inside
> >
> > Hardcoding paths doesn't fix anything; it just makes it look that way
> > to you (because your /usr/local/lib/libgd.so is GD 2.x).
> >
> > The right approach is to give the GD 2.x library a soname of
> > "libgd.so.2", by adding "-Wl,-soname,libgd.so.2" to the linking flags.
>
> Thanks for this hint! But were to add it (sorry, speak slowly please).
In the GD 2.x Makefile; replace:
ld -shared -o libgd.so.${VERSION} ${LIBOBJS}
with:
ld -shared -soname libgd.so.${MAJOR_VERSION} -o libgd.so.${VERSION} ${LIBOBJS}
The net result is that any program which is linked against the library
will depend upon "libgd.so.2" rather than just "libgd.so":
libgd.so.2 => /usr/local/lib/libgd.so.2 (0x4001c000)
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev
mailing list