Skip to content

Commit 6537593

Browse files
authored
Merge pull request #30 from schnitzeltony/4.17.x+fslc
menuconfig,check-lxdiaglog.sh: Allow specification of ncurses location
2 parents 076d88a + 2f8bd1c commit 6537593

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/kconfig/lxdialog/check-lxdialog.sh

100755100644
+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
# What library to link
66
ldflags()
77
{
8+
if [ "$CROSS_CURSES_LIB" != "" ]; then
9+
echo "$CROSS_CURSES_LIB"
10+
exit
11+
fi
812
pkg-config --libs ncursesw 2>/dev/null && exit
913
pkg-config --libs ncurses 2>/dev/null && exit
1014
for ext in so a dll.a dylib ; do
@@ -22,6 +26,10 @@ ldflags()
2226
# Where is ncurses.h?
2327
ccflags()
2428
{
29+
if [ x"$CROSS_CURSES_INC" != x ]; then
30+
echo "$CROSS_CURSES_INC"
31+
exit
32+
fi
2533
if pkg-config --cflags ncursesw 2>/dev/null; then
2634
echo '-DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1'
2735
elif pkg-config --cflags ncurses 2>/dev/null; then

0 commit comments

Comments
 (0)