Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15508d22 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Revert "[PATCH] kconfig: detect if -lintl is needed when linking conf,mconf"



This reverts commit 5e375bc7.

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: default avatarLinus Torvalds <torvalds@osdl.org>
parent 0bdd340c
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -124,16 +124,6 @@ KBUILD_HAVE_NLS := $(shell \
     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
endif

# generated files seem to need this to find local include files