[Patch] use Requires.private do avoid unnecessary linkage

Andreas Metzler ametzler at bebt.de
Fri Aug 30 19:13:07 CEST 2019


Hello,

find attached a one-line patch to avoid unnecessary linkage when using
pkg-config. For dynamic linking it is not necessary to link libgpg-error
when linking against libgcrypt (unless functions from libgpg-error are
used directly, obviously).

With this patch this works.
(sid)ametzler at argenau:$ pkg-config --libs libgcrypt
-lgcrypt
(sid)ametzler at argenau:$ pkg-config --libs --static libgcrypt
-lgcrypt -lgpg-error

TIA, 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: 0001-pkgconfig-Stop-unnecessary-linkage.patch
Type: text/x-diff
Size: 867 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20190830/42e4459c/attachment.patch>


More information about the Gcrypt-devel mailing list