From: Nikos Giotis <nikos.giotis@gmail.com>
To: yann.morin.1998@free.fr
Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org,
Nikos Giotis <nikos.giotis@gmail.com>
Subject: [PATCH] scripts/kconfig: Add tinfo library to linker library search
Date: Mon, 27 Oct 2014 21:18:37 +0200 [thread overview]
Message-ID: <1414437517-23558-1-git-send-email-nikos.giotis@gmail.com> (raw)
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
reply other threads:[~2014-10-27 19:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1414437517-23558-1-git-send-email-nikos.giotis@gmail.com \
--to=nikos.giotis@gmail.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yann.morin.1998@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®