kconfig: fix check-lxdialog for DLL platforms
PATCH 1/1 kconfig: fix check-lxdialog for DLL platforms
From: Yaakov Selkowitz <[email protected]>
Import libraries on Cygwin and MinGW/MSYS use the .dll.a suffix, so checking this suffix is necessary to make sure ncurses will still be found when built without static libraries.
---
Also applies to all 3.x stable branches
scripts/kconfig/lxdialog/check-lxdialog.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/kconfig/lxdialog/check-lxdialog.sh +1 -1
@@ -4,7 +4,7 @@ # What library to link ldflags() { - for ext in so a dylib ; do + for ext in so a dll.a dylib ; do for lib in ncursesw ncurses curses ; do $cc -print-file-name=lib${lib}.${ext} | grep -q / if [ $? -eq 0 ]; then
Signature · 1 line
1.7.9
Re: [PATCH] kconfig/nconf: fix compile with ncurses reentrant API
Quoted 5 lines · Yaakov (Cygwin/X)
ESCDELAY is a global variable which is replaced by getter and setter functions with
NCURSES_REENTRANT. This fixes the following error:
nconf.c: In function ‘main’:
nconf.c:1506:2: error: lvalue required as left operand of assignment
Quoted 5 lines · Yaakov (Cygwin/X)
Commit
8c41e5e363db55d91aa3b1cdce4ab02ad9821de7added a check forncursesw/curses.hfor the case where ncurses and ncursesw are build separately but only one is installed. But if both are installed, the headersncurses/curses.handncursesw/curses.hdiffer, and since libncursesw will be found first, so shouldncursesw/curses.h.
Quoted 3 lines · Yaakov (Cygwin/X)
Import libraries on Cygwin and MinGW/MSYS use the .dll.a suffix, so checking this suffix is necessary to make sure ncurses will still be found when built without static libraries.
I applied these three to kbuild.git#kconfig. Sorry for the delay.
Michal