summaryrefslogtreecommitdiff
path: root/kconfig
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-03-11 16:14:06 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-03-11 16:14:06 (GMT)
commitd16255f5e5a80b1f8340f6641fe41f8a64d9100f (patch)
tree6a1181e50b3d440a27c14e48b7f10b735a68ad1f /kconfig
parent79f2ee09f509a3c768c2b85b215b6a3a7e46d5b7 (diff)
Allan Clark <allanc@chickenandporn.com> provided a way to build on host lacking a proper libintl (such as MacOS-X).
Thank you Allan!
Diffstat (limited to 'kconfig')
-rw-r--r--kconfig/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/kconfig/Makefile b/kconfig/Makefile
index b1f30ea..fa8f77a 100644
--- a/kconfig/Makefile
+++ b/kconfig/Makefile
@@ -7,6 +7,10 @@ obj = ./kconfig
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 @@ SHIPPED = kconfig/zconf.tab.c kconfig/lex.zconf.c kconfig/zconf.hash.c
@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=<ncurses.h>"
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}