[gnutls-dev] Guile problems in 1.7.12

Simon Josefsson simon at josefsson.org
Mon Jun 11 21:52:21 CEST 2007


ludo at chbouib.org (Ludovic Courtès) writes:

> Hi,
>
> Simon Josefsson <simon at josefsson.org> writes:
>
>> It is related to -rpath problems... if I remove the installed copy of
>> libgnutls, libgnutls-extra, it works.  It seems to prefer to link
>> $prefix/lib/libgnutls.so over $builddir/lib/.libs/libgnutls.so.
>
> It appears to be already fixed here:
>
>   $ objdump -p .libs/libguile-gnutls{,-extra}-v-0.so | grep PATH
>     RPATH       /home/ludo/src/gnutls/lib/.libs:/usr/local/lib
>     RPATH       /home/ludo/src/gnutls/guile/src/.libs:/home/ludo/src/gnutls/lib/.libs:/home/ludo/src/gnutls/libextra/.libs:/usr/local/lib
>   $ objdump -p ../../libextra/.libs/libgnutls-extra.so | grep PATH
>     RPATH       /home/ludo/src/gnutls/lib/.libs:/usr/local/lib
>
> IOW, the `.libs' directories all appear _before_ `/usr/local/lib', which
> is exactly what we want.

Yup.

>> I may have fixed it, by using *_LIBADD instead of *_LDFLAGS to specify
>> the dependent libraries.
>
> This shouldn't make any difference (I did try it also while chasing the
> bug  ;-)).

It may not have been the immediate cause of making it work, but at least
it seems to work now.  And using _LIBADD instead of _LDFLAGS appears to
be more correct anyway.

/Simon



More information about the Gnutls-dev mailing list