From 234a267b5aaf2c072ed94a890e335e69c89e4514 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Mon, 6 Nov 2006 23:58:16 +0000 Subject: [PATCH] menuconfig: Add a fallback for linking on non-Linux systems The check-lxdialog.sh script currently fails if there is no working libcurses.so in any of the places where Linux distributions usually install those; instead of trying lots more paths and possible shared library names, use "-lcurses" instead -- the user will hopefully understand why it failed if the build doesn't work with that. Signed-off-by: Segher Boessenkool git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@32 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- src/scripts/kconfig/lxdialog/check-lxdialog.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/scripts/kconfig/lxdialog/check-lxdialog.sh b/src/scripts/kconfig/lxdialog/check-lxdialog.sh index 120d624e67..c9afe889c1 100644 --- a/src/scripts/kconfig/lxdialog/check-lxdialog.sh +++ b/src/scripts/kconfig/lxdialog/check-lxdialog.sh @@ -19,7 +19,10 @@ ldflags() echo '-lcurses' exit fi - exit 1 + + # If all fails, try "-lcurses" + echo '-lcurses' + exit } # Where is ncurses.h?