request fix/patch
Posted: 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
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