* [PATCH] scripts/kconfig: Add tinfo library to linker library search
@ 2014-10-27 19:18 Nikos Giotis
0 siblings, 0 replies; only message in thread
From: Nikos Giotis @ 2014-10-27 19:18 UTC (permalink / raw)
To: yann.morin.1998; +Cc: linux-kernel, linux-kbuild, Nikos Giotis
For systems that have ncurses library configured with the
"--with termlib=tinfo" option the linker reports errors when
running "make menuconfig" due to undefined reference to symbol
'acs_map'. The change does not change the behaviour when
building against ncurses configured without this option. The
tinfo library is included in the lists of libraries that are
searched when buidling lxdialog sources.
Tested with kernel 3.14.22 and latest master from git
Signed-off-by: Nikos Giotis <nikos.giotis@gmail.com>
---
scripts/kconfig/lxdialog/check-lxdialog.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh
index 5075ebf..202e4bf 100755
--- a/scripts/kconfig/lxdialog/check-lxdialog.sh
+++ b/scripts/kconfig/lxdialog/check-lxdialog.sh
@@ -4,10 +4,10 @@
# What library to link
ldflags()
{
- pkg-config --libs ncursesw 2>/dev/null && exit
- pkg-config --libs ncurses 2>/dev/null && exit
+ pkg-config --libs ncursesw tinfo 2>/dev/null && exit
+ pkg-config --libs ncurses tinfo 2>/dev/null && exit
for ext in so a dll.a dylib ; do
- for lib in ncursesw ncurses curses ; do
+ for lib in ncursesw ncurses curses tinfo ; do
$cc -print-file-name=lib${lib}.${ext} | grep -q /
if [ $? -eq 0 ]; then
echo "-l${lib}"
--
1.8.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-10-27 19:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-27 19:18 [PATCH] scripts/kconfig: Add tinfo library to linker library search Nikos Giotis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®