From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Seiderer Date: Sun, 27 Dec 2020 18:08:32 +0100 Subject: [Buildroot] [PATCH v1] package/iwd: fix static linking (readline needs ncurses) Message-ID: <20201227170832.23903-1-ps.report@gmx.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Fixes: - http://autobuild.buildroot.net/results/26c7536b95cc475bc10d4283e93ea9ccd6ced665 .../arm-buildroot-linux-musleabihf/bin/ld: .../arm-buildroot-linux-musleabihf/sysroot/usr/lib/libreadline.a(display.o): in function `_rl_move_cursor_relative': display.c:(.text+0x1164): undefined reference to `tputs' Signed-off-by: Peter Seiderer --- ...tatic-linking-readline-needs-ncurses.patch | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 package/iwd/0001-iwctl-fix-static-linking-readline-needs-ncurses.patch diff --git a/package/iwd/0001-iwctl-fix-static-linking-readline-needs-ncurses.patch b/package/iwd/0001-iwctl-fix-static-linking-readline-needs-ncurses.patch new file mode 100644 index 0000000000..a204d982b8 --- /dev/null +++ b/package/iwd/0001-iwctl-fix-static-linking-readline-needs-ncurses.patch @@ -0,0 +1,31 @@ +From 84a4eb23ccca883d3823785225858bd437e3833a Mon Sep 17 00:00:00 2001 +From: Peter Seiderer +Date: Sun, 27 Dec 2020 17:56:35 +0100 +Subject: [PATCH] iwctl: fix static linking (readline needs ncurses) + +Fixes: + + .../arm-buildroot-linux-musleabihf/bin/ld: .../arm-buildroot-linux-musleabihf/sysroot/usr/lib/libreadline.a(display.o): in function `_rl_move_cursor_relative': + display.c:(.text+0x1164): undefined reference to `tputs' + +Signed-off-by: Peter Seiderer +--- + Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index 1f0b0d3..5ae4a98 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -286,7 +286,7 @@ client_iwctl_SOURCES = client/main.c \ + client/network.h client/network.c \ + client/properties.h client/properties.c \ + client/wsc.c client/station.c +-client_iwctl_LDADD = $(ell_ldadd) -lreadline ++client_iwctl_LDADD = $(ell_ldadd) -lreadline -lncurses + + if MANUAL_PAGES + man_MANS += client/iwctl.1 +-- +2.29.2 + -- 2.29.2