kconfig: fix check-lxdialog for DLL platforms
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>
Wed, 13 Jun 2012 00:05:15 +0000 (19:05 -0500)
committerMichal Marek <mmarek@suse.cz>
Wed, 4 Jul 2012 16:28:14 +0000 (18:28 +0200)
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.

Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/kconfig/lxdialog/check-lxdialog.sh

index b75820bbdd3abd25002d8b126f811604cf4bcf30..e3b12c010417c8e2886c1f57b07379cd483f7878 100644 (file)
@@ -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