]> granicus.if.org Git - esp-idf/commitdiff
Allow OS X to build without libintl
authorSandeep Mistry <s.mistry@arduino.cc>
Tue, 4 Oct 2016 20:07:06 +0000 (16:07 -0400)
committerIvan Grokhotkov <ivan@espressif.com>
Thu, 3 Nov 2016 13:40:52 +0000 (21:40 +0800)
tools/kconfig/lxdialog/check-lxdialog.sh

index 6964d2b0c53afdf61c63f740eb8fcc8e1875462a..48c19278a925ad4ff19c09f43563a44287fa26db 100755 (executable)
@@ -5,8 +5,8 @@
 ldflags()
 {
        if [ $(uname -s) == "Darwin" ]; then 
-               #OSX seems to need intl too
-               echo -n "-lintl "
+               #OSX seems to need ncurses too
+               echo -n "-lncurses"
        fi
        pkg-config --libs ncursesw 2>/dev/null && exit
        pkg-config --libs ncurses 2>/dev/null && exit
@@ -41,6 +41,10 @@ ccflags()
        else
                echo '-DCURSES_LOC="<curses.h>"'
        fi
+       if [ $(uname -s) == "Darwin" ]; then
+               #OSX doesn't have libintl
+               echo -n "-DKBUILD_NO_NLS"
+       fi
 }
 
 # Temp file, try to clean up after us