Skip to contentSkip to conversation

kconfig: fix check-lxdialog for DLL platforms

PATCH In review Yaakov (Cygwin/X) 2 participants 2 messages Jun 13, 2012 – Jul 4, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index b75820b..e3b12c0 100644
@@ -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
#1 lore raw

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 8c41e5e363db55d91aa3b1cdce4ab02ad9821de7 added a check for ncursesw/curses.h for the case where ncurses and ncursesw are build separately but only one is installed. But if both are installed, the headers ncurses/curses.h and ncursesw/curses.h differ, and since libncursesw will be found first, so should ncursesw/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