gnutls-devel
[Top][All Lists]
Advanced

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

Re: [gnutls-dev] pkg-config file for libgnutls


From: Simon Josefsson
Subject: Re: [gnutls-dev] pkg-config file for libgnutls
Date: Thu, 15 Feb 2007 12:01:13 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux)

Pavlov Konstantin <address@hidden> writes:

> Hello everyone.
>
> I noticed that my libgnutls-devel package doesn't depend on libtasn1-devel
> one.
>
> Looks like this is due to that line in .pc file:
>
> Libs.private: -L/usr/lib -lgnutls -ltasn1  -lgcrypt -lgpg-error
>
> Shouldnt it be Libs: -L${libdir} @LIBGNUTLS_LIBS@ instead?
>
> Without libtasn1-devel installed, macro AM_PATH_LIBGNUTLS doesnt work.

As far as I understand the pkg-config documentation, Libs.private is
for static linking and Libs is for dynamic linking.  So I think that
this is correct, since the dynamic linker takes care of the
dependencies.

Libs: -L${libdir} -lgnutls
Libs.private: @LIBGNUTLS_LIBS@

Possibly we could have a 'Requires: libtasn1' line added, which I
think would have the effect as you want: 'pkg-config --libs gnutls'
will mention -ltasn1.

/Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]