[gnutls-devel] gnutls.pc includes invalid flags

Nikos Mavrogiannopoulos nmav at gnutls.org
Fri Mar 17 12:07:39 CET 2017


On Thu, Mar 16, 2017 at 6:03 PM, Andreas Metzler <ametzler at bebt.de> wrote:
> Hello,
>
> this is https://bugs.debian.org/857943 reported by Aaron M. Ucko:
> ----------------
> he output of `pkg-config gnutls --libs --static` includes a flag of
> the form -R/usr/lib/$DEB_HOST_MULTIARCH, which is not only superfluous
> but also outright broken without a leading -Wl,:
>
> $ gcc `pkg-config gnutls --libs --static`
> gcc: error: unrecognized command line option ‘-R’; did you mean ‘-R’?
> $ pkg-config gnutls --libs --static
> -lgnutls -lz -R/usr/lib/x86_64-linux-gnu     -lp11-kit   -lgmp -lnettle -lhogweed -lgmp -lnettle -ltasn1 -lidn -lp11-kit -lz
> ----------------
> Attached patch works for me.
>
> (I am not totally sure whether it is useful to carter for incomplete
> pkg-config setups at all. If there is no zlib.pc, the user will probably
> not install gnutls.pc either.)

I'm thinking that this may apply to all the LT variables used
Libs.private. Would it still work if we use the non LT version of the
variables (e.g., LIBZ in that case?)

regards,
Nikos



More information about the Gnutls-devel mailing list