summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols/quagga/files
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-09-01 13:06:45 -0700
committerKhem Raj <raj.khem@gmail.com>2022-09-01 13:09:22 -0700
commit26af1e567341502b51f4d762434eaedff8673d2e (patch)
tree85b5d4ed1faae91f41dd3ac7ada10c0d45f9c680 /meta-networking/recipes-protocols/quagga/files
parentd8c94d06cfaa98436344dfe80085d5d0f505873b (diff)
downloadmeta-openembedded-26af1e567341502b51f4d762434eaedff8673d2e.tar.gz
quagga: Fix AC_CHECK_LIB for libreadline
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-protocols/quagga/files')
-rw-r--r--meta-networking/recipes-protocols/quagga/files/0001-configure-Check-for-readline-instead-of-main-in-libr.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/quagga/files/0001-configure-Check-for-readline-instead-of-main-in-libr.patch b/meta-networking/recipes-protocols/quagga/files/0001-configure-Check-for-readline-instead-of-main-in-libr.patch
new file mode 100644
index 0000000000..776c0958fa
--- /dev/null
+++ b/meta-networking/recipes-protocols/quagga/files/0001-configure-Check-for-readline-instead-of-main-in-libr.patch
@@ -0,0 +1,32 @@
1From 675b35b7ed416c837267e493b157167319e8f5fa Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 1 Sep 2022 11:01:53 -0700
4Subject: [PATCH] configure: Check for readline() instead of main() in
5 libreadline
6
7while checking for presense of libreadline, poke for a function which is
8provided by libreadline, main is not provided by it, so modern compiler
9toolchains may complain about it.
10
11Upstream-Status: Submitted [https://github.com/Quagga/quagga/pull/9]
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 configure.ac | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/configure.ac b/configure.ac
18index ed279f48..d444ab4a 100755
19--- a/configure.ac
20+++ b/configure.ac
21@@ -754,7 +754,7 @@ dnl [TODO] on Linux, and in [TODO] on Solaris.
22 )]
23 )]
24 )
25- AC_CHECK_LIB(readline, main, LIBREADLINE="-lreadline $LIBREADLINE",,
26+ AC_CHECK_LIB(readline, readline, LIBREADLINE="-lreadline $LIBREADLINE",,
27 "$LIBREADLINE")
28 if test $ac_cv_lib_readline_main = no; then
29 AC_MSG_ERROR([vtysh needs libreadline but was not found and usable on your system.])
30--
312.37.3
32