summaryrefslogtreecommitdiff
path: root/rpm.pc.in
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2022-05-10 13:30:44 +0200
committerPanu Matilainen <pmatilai@redhat.com>2022-05-11 09:34:37 +0300
commitb76f433842c7d7f8f18f8ff05c788a08bb91ffb3 (patch)
tree146e804d85b2a54639bbf6787cf7360b5d57d86e /rpm.pc.in
parent122bb4ffae7b2bacd8d790cac2c765d51b23d7d9 (diff)
downloadrpm-b76f433842c7d7f8f18f8ff05c788a08bb91ffb3.tar.gz
Don't require a user of librpmio to link to librpm_sequoia
When rpm is configured to use Sequoia for the OpenPGP implementation ('configure --crypto=sequoia'), librpmio is linked against librpm_sequoia. librpm_sequoia can't directly implement the OpenPGP API, because librpmio won't reexport librpm_sequoia's symbols, and we don't want a program linking against librpmio to explicitly link against (i.e., need a DT_NEEDED entry for) librpm_sequoia. We can circumvent this problem by having librpm_sequoia provide identical functions under different names, and then having librpmio provide forwarders. That's what this commit does: a Sequoia-specific file forwards pgpFoo to _pgpFoo. It's a bit ugly, but it is better than a brittle, non-portable hack. Fixes #2051.
Diffstat (limited to 'rpm.pc.in')
-rw-r--r--rpm.pc.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpm.pc.in b/rpm.pc.in
index 5449f01a0..1f76f0685 100644
--- a/rpm.pc.in
+++ b/rpm.pc.in
@@ -12,5 +12,5 @@ Requires: popt
Requires.private: @ZSTD_REQUIRES@
# Conflicts:
Cflags: -I${includedir}
-Libs: -L${libdir} -lrpm -lrpmio @WITH_RPM_SEQUOIA_LIB@
+Libs: -L${libdir} -lrpm -lrpmio
Libs.private: -lpopt -lrt -lpthread @WITH_LZMA_LIB@ @WITH_BZ2_LIB@ @WITH_ZLIB_LIB@ @LUA_LIBS@