diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2020-02-25 16:16:17 +0900 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2022-02-04 18:00:55 +0100 |
commit | 34d773515f3c068309d5c4b977742e304a2b4738 (patch) | |
tree | b433d1b8a2d115b72ac216778c892ea5db06a077 | |
parent | 5d99af142c7dce0aab0a2a33966646258c10fbe1 (diff) | |
download | libgcrypt-34d773515f3c068309d5c4b977742e304a2b4738.tar.gz |
build: More accurate dependency to -lgpg-error.
* configure.ac (LIBGCRYPT_CONFIG_LIBS): Remove DL_LIBS.
* src/libgcrypt.c.in: Distinguish static link use case.
* tests/Makefile.am: Fix use of -lgpg-error.
--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
(cherry picked from commit 9b8ac13761f0407bd701e43b0a65fbada204958f)
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | src/libgcrypt.pc.in | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 64d95b43..7b42dd48 100644 --- a/configure.ac +++ b/configure.ac @@ -1750,7 +1750,6 @@ if test "$use_hmac_binary_check" = yes ; then AC_SEARCH_LIBS(dlopen, c dl,,,) DL_LIBS=$LIBS LIBS="$_gcry_save_libs" - LIBGCRYPT_CONFIG_LIBS="${LIBGCRYPT_CONFIG_LIBS} ${DL_LIBS}" fi AC_SUBST(DL_LIBS) diff --git a/src/libgcrypt.pc.in b/src/libgcrypt.pc.in index 7c1030f9..325f5c2b 100644 --- a/src/libgcrypt.pc.in +++ b/src/libgcrypt.pc.in @@ -10,8 +10,9 @@ digests="@LIBGCRYPT_DIGESTS@" Name: libgcrypt Description: General purpose cryptographic library -Requires: gpg-error +Requires.private: gpg-error Version: @PACKAGE_VERSION@ Cflags: -I${includedir} @LIBGCRYPT_CONFIG_CFLAGS@ Libs: -L${libdir} @LIBGCRYPT_CONFIG_LIBS@ +Libs.private: @DL_LIBS@ URL: https://www.gnupg.org/software/libgcrypt/index.html |