srecord: Fix AC_CHECK_LIB for gpg-error

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2022-09-01 13:22:06 -07:00
parent 9ba6b56abc
commit 2818fada9b
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,29 @@
From f9e50aba10f9d2c58e5d88f51810ca7143f4372b Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 1 Sep 2022 13:20:01 -0700
Subject: [PATCH] configure: Fix AC_CHECK_LIB test for gpg-error
Use check function which is found in libgpg-error
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
etc/configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/etc/configure.ac b/etc/configure.ac
index d4ae290..ea0936d 100644
--- a/etc/configure.ac
+++ b/etc/configure.ac
@@ -30,7 +30,7 @@ AC_CHECK_PROGS(SOELIM, gsoelim soelim roffpp)
AC_CHECK_FUNCS(snprintf vsnprintf)
dnl! This is needed for MingGW build, but not for Unix or Linux, etc.
-AC_CHECK_LIB(gpg-error, main)
+AC_CHECK_LIB(gpg-error, gpg_strerror_r)
dnl! @synopsis AC_ADD_CFLAGS
dnl!
--
2.37.3

View File

@ -7,6 +7,7 @@ SRC_URI = " \
http://srecord.sourceforge.net/srecord-${PV}.tar.gz \
file://add-option-to-remove-docs.patch \
file://libtool.patch \
file://0001-configure-Fix-AC_CHECK_LIB-test-for-gpg-error.patch \
"
SRC_URI[md5sum] = "4de4a7497472d7972645c2af91313769"