request fix/patch

danny@cs.huji.ac.il
Posts: 31
Joined: Thu Mar 30, 2017 10:39 am

request fix/patch

Postby danny@cs.huji.ac.il » Wed May 31, 2017 6:23 am

to compile in FreeBSD environment, this patch is needed:

diff --git a/tools/kconfig/lxdialog/check-lxdialog.sh b/tools/kconfig/lxdialog/check-lxdialog.sh
index 79df5ed4..2970156c 100755
--- a/tools/kconfig/lxdialog/check-lxdialog.sh
+++ b/tools/kconfig/lxdialog/check-lxdialog.sh
@@ -4,7 +4,7 @@
# What library to link
ldflags()
{
- if [ $(uname -s) == "Darwin" ]; then
+ if [ $(uname -s) == "Darwin" -o $(uname -s) == "FreeBSD" ]; then
#OSX seems to need ncurses too
echo -n "-lncurses "
fi
@@ -41,7 +41,7 @@ ccflags()
else
echo '-DCURSES_LOC="<curses.h>"'
fi
- if [ $(uname -s) == "Darwin" ]; then
+ if [ $(uname -s) == "Darwin" -o $(uname -s) == "FreeBSD" ]; then
#OSX doesn't have libintl
echo -n "-DKBUILD_NO_NLS -Wno-format-security "
fi

Who is online

Users browsing this forum: No registered users and 111 guests