Hi, 2010/8/17 Michal Marek <mmarek@xxxxxxx>: > On 16.8.2010 06:19, Arnaud Lacombe wrote: >> -HOSTLOADLIBES_nconf = -lmenu -lpanel -lncurses >> +HOSTLOADLIBES_nconf = -lmenu -lpanel -lncurses -lintl > > This will not work on Linux though, the libintl functions are part of > glibc itself. There is already scripts/kconfig/check.sh and the > following snippet in scripts/kconfig/lkc.h > > #ifndef KBUILD_NO_NLS > # include <libintl.h> > #else > static inline const char *gettext(const char *txt) { return txt; } > static inline void textdomain(const char *domainname) {} > static inline void bindtextdomain(const char *name, const char *dir) {} > #endif > > that take care of disabling libintl support if it doesn't work. Not > optimal, but it should build in theory. Could you debug why it does not > work on NetBSD? > there seems to be competition between setting HOST_EXTRACFLAGS from the command line and its assignment in the Makefile: % gmake -v GNU Make 3.81 Using the `menuconfig' target: works: % gmake V=1 menuconfig [...] sh //linux-2.6-stable/scripts/kconfig/lxdialog/check-lxdialog.sh -check gcc -DCURSES_LOC="<curses.h>" -DLOCALE -DKBUILD_NO_NLS -lcurses [...] does not work: % gmake HOST_EXTRACFLAGS="-DUMMY=1" V=1 menuconfig [...] sh /linux-2.6-stable/scripts/kconfig/lxdialog/check-lxdialog.sh -check gcc -DUMMY=1 -lcurses [...] The same apply with `nconfig'. It is built with the command line HOST_EXTRACFLAGS and the one in the Makefile is ignored. As a side note, `nconfig' on NetBSD must be build with: HOST_EXTRACFLAGS:="-I/usr/pkg/include/ -I/usr/pkg/include/ncurses/" HOSTLDFLAGS="-Wl,-rpath=/usr/pkg/lib/ -L/usr/pkg/lib/" as ncurses is not the default system curses library. - Arnaud -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html