[gnutls-devel] gnutls.pc includes invalid flags
Andreas Metzler
ametzler at bebt.de
Thu Mar 16 18:03:48 CET 2017
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.)
cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Do-not-use-LTLIBZ-in-gnutls.pc.in.patch
Type: text/x-diff
Size: 1752 bytes
Desc: not available
URL: </pipermail/attachments/20170316/6e0db21d/attachment.patch>
More information about the Gnutls-devel
mailing list