From: Linus Torvalds Date: Thu, 9 Feb 2006 16:00:14 +0000 (-0800) Subject: Revert "[PATCH] kconfig: detect if -lintl is needed when linking conf,mconf" X-Git-Tag: v2.6.16-rc3~50 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=15508d22d00277a1f2a1022dce38f2772c810d32;p=linux-2.6-omap-h63xx.git Revert "[PATCH] kconfig: detect if -lintl is needed when linking conf,mconf" This reverts commit 5e375bc7d586e0df971734a5a5f1f080ffd89b68. Kyle McMartin steps on his soap-box: "Sigh. Can everyone please stop assuming gcc can output to /dev/null? On several platforms, ld tries to lseek in the output file, and fails if it can't." Signed-off-by: Linus Torvalds --- diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index d64aae85c37..5760e057ecb 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -123,17 +123,7 @@ KBUILD_HAVE_NLS := $(shell \ then echo yes ; \ else echo no ; fi) ifeq ($(KBUILD_HAVE_NLS),no) - HOSTCFLAGS += -DKBUILD_NO_NLS -else - KBUILD_NEED_LINTL := $(shell \ - if echo -e "\#include \nint main(int a, char** b) { gettext(\"\"); return 0; }\n" | \ - $(HOSTCC) $(HOSTCFLAGS) -x c - -o /dev/null> /dev/null 2>&1 ; \ - then echo no ; \ - else echo yes ; fi) - ifeq ($(KBUILD_NEED_LINTL),yes) - HOSTLOADLIBES_conf += -lintl - HOSTLOADLIBES_mconf += -lintl - endif +HOSTCFLAGS += -DKBUILD_NO_NLS endif # generated files seem to need this to find local include files