# HG changeset patch # User "Yann E. MORIN" # Date 1173629646 0 # Node ID cc2869cc3121260ea7874198866c26bed9749620 # Parent 1cc9524bf15ad891518752c965bac981a6d7c700 Allan Clark provided a way to build on host lacking a proper libintl (such as MacOS-X). Thank you Allan! diff -r 1cc9524bf15a -r cc2869cc3121 kconfig/Makefile --- a/kconfig/Makefile Sun Mar 11 09:46:22 2007 +0000 +++ b/kconfig/Makefile Sun Mar 11 16:14:06 2007 +0000 @@ -7,6 +7,10 @@ PHONY += clean help oldconfig menuconfig config silentoldconfig \ randconfig allyesconfig allnoconfig allmodconfig defconfig +ifneq ($(KBUILD_NO_NLS),) +CFLAGS += -DKBUILD_NO_NLS +endif + menuconfig: $(obj)/mconf @$< $(KCONFIG_TOP) @@ -45,11 +49,11 @@ @ln -s $(notdir $<) $@ kconfig/mconf: $(SHIPPED) kconfig/mconf.c - @$(HOST_CC) -o $@ kconfig/{mconf.c,zconf.tab.c,lxdialog/*.c} \ + @$(HOST_CC) $(CFLAGS) -o $@ kconfig/{mconf.c,zconf.tab.c,lxdialog/*.c} \ -lcurses "-DCURSES_LOC=" kconfig/conf: $(SHIPPED) kconfig/conf.c - @$(HOST_CC) -o $@ kconfig/{conf.c,zconf.tab.c} + @$(HOST_CC) $(CFLAGS) -o $@ kconfig/{conf.c,zconf.tab.c} clean:: @rm -f $(wildcard kconfig/*zconf*.c) kconfig/{conf,mconf}