[Buildroot] [PATCH v1] package/iwd: fix static linking (readline needs ncurses)

Peter Seiderer ps.report at gmx.net
Sun Dec 27 17:08:32 UTC 2020


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 <ps.report at gmx.net>
---
 ...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 <ps.report at gmx.net>
+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 <ps.report at gmx.net>
+---
+ 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



More information about the buildroot mailing list