Skip to content

Commit

Permalink
Revert "[PATCH] kconfig: detect if -lintl is needed when linking conf…
Browse files Browse the repository at this point in the history
…,mconf"

This reverts commit 5e375bc.

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 <torvalds@osdl.org>
  • Loading branch information
Linus Torvalds committed Feb 9, 2006
1 parent 0bdd340 commit 15508d2
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions scripts/kconfig/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 <libintl.h>\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
Expand Down

0 comments on commit 15508d2

Please sign in to comment.