Re: [PATCH] Allow kernel to build on Cygwin

From: Matthieu CASTET
Date: Fri Feb 23 2007 - 15:39:35 EST


Hi,

Deepak Saxena <dsaxena <at> plexity.net> writes:

>
>
> This patch contains a set of small fixes to allow the kernel to build under
> the Cygwin environment, which is unfortunately used by more people than
> one would think in the embedded world. :(
Yes, I did similar patch, and there are needed for everything (busybox,
glibc, ...)
-D LKC_DIRECT_LINK
>
> +HOST_OS := $(shell uname -o)
> +ifeq ($(HOST_OS),Cygwin)
> +HOSTLOADLIBES_mconf = -lintl
> +HOSTLOADLIBES_conf = -lintl
> +endif
> +
Hum, this test should be done if we detect nls support. See ifeq
($(KBUILD_HAVE_NLS),no) ...



> --- a/scripts/kconfig/lxdialog/check-lxdialog.sh
> +++ b/scripts/kconfig/lxdialog/check-lxdialog.sh
> <at> <at> -4,6 +4,10 <at> <at> # Check ncurses compatibility
> # What library to link
> ldflags()
> {
> + if [ "`uname -o`" == "Cygwin" ]; then
> + echo '-lintl -lncurses'
> + exit
> + fi
You should test against libncurses.a and not hardcode it for cygwin...

Matthieu



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/