aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2021-09-10 00:56:57 +0000
committerNIIBE Yutaka <[email protected]>2021-09-10 00:56:57 +0000
commit6b08dd09864e7fbb424296ad490f9fe65c9bc247 (patch)
treee2f1041b314900de02995768f48821fec69c5dc2
parenttests: Add a test for locking when single thread. (diff)
downloadlibgpg-error-6b08dd09864e7fbb424296ad490f9fe65c9bc247.tar.gz
libgpg-error-6b08dd09864e7fbb424296ad490f9fe65c9bc247.zip
gpgrt-config: Fix behavior when PKG_CONFIG_LIBDIR="".
* src/gpgrt-config.in: Correctly detect the case. -- GnuPG-bug-id: 5595 Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--src/gpgrt-config.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpgrt-config.in b/src/gpgrt-config.in
index 6352384..3aaa243 100644
--- a/src/gpgrt-config.in
+++ b/src/gpgrt-config.in
@@ -470,7 +470,7 @@ while test $# -gt 0; do
esac
done
-if [ x"${PKG_CONFIG_LIBDIR:+set}" = xset -a -z "$PKG_CONFIG_LIBDIR" ]; then
+if env | grep '^PKG_CONFIG_LIBDIR=$' >/dev/null 2>&1; then
# The variable set as empty, we use PKG_CONFIG_PATH in this case,
# ignoring --libdir option
if [ -z "$PKG_CONFIG_PATH" ]; then