提交 03c9587d 编写于 作者: M Mike Frysinger 提交者: Sam Ravnborg

kconfig: search harder for curses library in check-lxdialog.sh

The check-lxdialog.sh script searches for "libFOO.so" which fails on OS X, due
to their special naming of libraries like "libfoo.dylib".  This patch turns
the curses lib search into extensible loops and adds dylib as a valid
extension.
Signed-off-by: NMike Frysinger <vapier@gentoo.org>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 fc31c771
...@@ -4,21 +4,15 @@ ...@@ -4,21 +4,15 @@
# What library to link # What library to link
ldflags() ldflags()
{ {
$cc -print-file-name=libncursesw.so | grep -q / for ext in so a dylib ; do
if [ $? -eq 0 ]; then for lib in ncursesw ncurses curses ; do
echo '-lncursesw' $cc -print-file-name=lib${lib}.${ext} | grep -q /
exit if [ $? -eq 0 ]; then
fi echo "-l${lib}"
$cc -print-file-name=libncurses.so | grep -q / exit
if [ $? -eq 0 ]; then fi
echo '-lncurses' done
exit done
fi
$cc -print-file-name=libcurses.so | grep -q /
if [ $? -eq 0 ]; then
echo '-lcurses'
exit
fi
exit 1 exit 1
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册