1 diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
2 index fb2bb30..a7304ec 100644
3 --- a/scripts/kconfig/Makefile
4 +++ b/scripts/kconfig/Makefile
5 @@ -151,6 +151,16 @@ ifeq ($(KBUILD_HAVE_NLS),no)
6 HOSTCFLAGS += -DKBUILD_NO_NLS
9 +# Needed for systems with separate libintl
10 +KBUILD_NEED_LIBINTL := $(shell \
11 + if echo 'int main() { return gettext(); }' \
12 + | $(HOSTCC) $(HOSTCFLAGS) -x c - -o /dev/null > /dev/null 2>&1 ; \
15 +ifeq ($(KBUILD_NEED_LIBINTL),yes)
16 +HOSTLOADLIBES += -lintl
19 # generated files seem to need this to find local include files
20 HOSTCFLAGS_lex.zconf.o := -I$(src)
21 HOSTCFLAGS_zconf.tab.o := -I$(src)