From 85653acfb4112e9feac0de063942c793447cdace Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Tue, 12 Mar 2019 09:40:18 -0700 Subject: [PATCH] check-lxdialog.sh: Support libintl on FreeBSD To unbreak "make menuconfig." Merges https://github.com/espressif/esp-idf/pull/3168 --- tools/kconfig/lxdialog/check-lxdialog.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/kconfig/lxdialog/check-lxdialog.sh b/tools/kconfig/lxdialog/check-lxdialog.sh index 9e98145983..e9daa6270c 100755 --- a/tools/kconfig/lxdialog/check-lxdialog.sh +++ b/tools/kconfig/lxdialog/check-lxdialog.sh @@ -7,6 +7,10 @@ ldflags() if [ $(uname -s) == "Darwin" ]; then #OSX seems to need ncurses too echo -n "-lncurses " + elif [ $(uname -s) == "FreeBSD" ]; then + # On FreeBSD, the linker needs to know to search port libs for + # libintl + echo -n "-L/usr/local/lib -lintl " fi pkg-config --libs ncursesw 2>/dev/null && exit pkg-config --libs ncurses 2>/dev/null && exit @@ -44,6 +48,10 @@ ccflags() if [ $(uname -s) == "Darwin" ]; then #OSX doesn't have libintl echo -n "-DKBUILD_NO_NLS -Wno-format-security " + elif [ $(uname -s) == "FreeBSD" ]; then + # FreeBSD gettext port has libintl.h, but the compiler needs + # to know to search port includes + echo -n "-I/usr/local/include " fi }