diff options
Diffstat (limited to 'meta-networking/recipes-protocols/quagga/files/0001-configure-Check-for-readline-instead-of-main-in-libr.patch')
| -rw-r--r-- | meta-networking/recipes-protocols/quagga/files/0001-configure-Check-for-readline-instead-of-main-in-libr.patch | 32 | 
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 @@ | |||
| 1 | From 675b35b7ed416c837267e493b157167319e8f5fa Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Thu, 1 Sep 2022 11:01:53 -0700 | ||
| 4 | Subject: [PATCH] configure: Check for readline() instead of main() in | ||
| 5 | libreadline | ||
| 6 | |||
| 7 | while checking for presense of libreadline, poke for a function which is | ||
| 8 | provided by libreadline, main is not provided by it, so modern compiler | ||
| 9 | toolchains may complain about it. | ||
| 10 | |||
| 11 | Upstream-Status: Submitted [https://github.com/Quagga/quagga/pull/9] | ||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | configure.ac | 2 +- | ||
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/configure.ac b/configure.ac | ||
| 18 | index 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 | -- | ||
| 31 | 2.37.3 | ||
| 32 | |||
