624eb111e1
libgrypt provides a config file `libgcrypt-config`. After the version
bump to 1.8.4 upstream added a pkg-config file as well [1].
Using the pkg-config file is preferred over using the package provided
config file. For example, the Meson build system requires that for every
special config file an entry is added to the `[binary]` section in the
cross-compilation.conf file, otherwise it will use the config file found
in `PATH`. This is bad when cross-compiling as `PATH` will include
pathes to the host and therefore Meson will wrongly use the host config
file.
To simplify using libgcrypt for packages using the meson infrastructure
lets add the pkg-config file.
Note, that the additional upstream patch 0003 fixes a typo in the pkg-config
file.
[1] 97194b422b
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
32 lines
975 B
Diff
32 lines
975 B
Diff
From de0245ddfca3cea31311eae9f7f3e8c0da072252 Mon Sep 17 00:00:00 2001
|
|
From: NIIBE Yutaka <gniibe@fsij.org>
|
|
Date: Wed, 24 Oct 2018 15:34:57 +0900
|
|
Subject: [PATCH] build: Fix libgcrypt.pc.
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
* src/libgcrypt.pc.in: Fix typo.
|
|
|
|
Fetched from: 0e071372fc0e6fed4a449955ed0789803ba5e709
|
|
|
|
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
|
|
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
|
|
---
|
|
src/libgcrypt.pc.in | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/libgcrypt.pc.in b/src/libgcrypt.pc.in
|
|
index 5472da53..ec68fa2d 100644
|
|
--- a/src/libgcrypt.pc.in
|
|
+++ b/src/libgcrypt.pc.in
|
|
@@ -13,5 +13,5 @@ Description: General purpose cryptographic library
|
|
Requires: gpg-error
|
|
Version: @PACKAGE_VERSION@
|
|
Cflags: @LIBGCRYPT_CONFIG_CFLAGS@
|
|
-Libs: @LIBGCRYPT_CONFIG_LIB@
|
|
+Libs: @LIBGCRYPT_CONFIG_LIBS@
|
|
URL: https://www.gnupg.org/software/libgcrypt/index.html
|
|
--
|
|
2.22.0
|