All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/readline: propagate CONF_OPTS to host build
@ 2026-07-19  3:16 Ronan Loftus
  2026-08-24 20:56 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Ronan Loftus @ 2026-07-19  3:16 UTC (permalink / raw)
  To: buildroot; +Cc: Ronan Loftus

--with-shared-termcap-library is only applied to the target readline
because CONF_OPTS is not inherited by the host variant. The resulting
host libreadline.so.8 has no DT_NEEDED on ncurses/tinfo, leaving
termcap symbols (UP, BC, tgetent, ...) unresolved.

With recent binutils (--no-copy-dt-needed-entries), any process
loading this libreadline via LD_LIBRARY_PATH fails at startup. This
breaks fakeroot-based rootfs generation when host-gdb (which pulls
host-readline) is selected:

  /bin/sh: symbol lookup error: .../host/lib/libreadline.so.8:
  undefined symbol: UP

Reproduced on Arch Linux (gcc 16.1.1, binutils 2.46.1).

Signed-off-by: Ronan Loftus <rlf42@posteo.net>
---
 package/readline/readline.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/readline/readline.mk b/package/readline/readline.mk
index f69cbe45..8c49fab8 100644
--- a/package/readline/readline.mk
+++ b/package/readline/readline.mk
@@ -15,6 +15,7 @@ READLINE_CONF_OPTS = \
 	--disable-install-examples \
 	--with-curses \
 	--with-shared-termcap-library
+HOST_READLINE_CONF_OPTS = $(READLINE_CONF_OPTS)
 READLINE_LICENSE = GPL-3.0+
 READLINE_LICENSE_FILES = COPYING
 READLINE_CPE_ID_VENDOR = gnu
-- 
2.55.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-08-24 20:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-19  3:16 [Buildroot] [PATCH 1/1] package/readline: propagate CONF_OPTS to host build Ronan Loftus
2026-08-24 20:56 ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.