Mail Archives: cygwin/2007/03/20/08:04:58
On 20 March 2007 12:24, Domen Vrankar wrote:
> Hi,
>
> while trying to build Linux kernel under Cygwin I get undefined
> reference to `_libintl_gettext' errors.
The following patch might help, but it's against a rather old kernel version
and I don't know if it'll still apply:
diff -pruNE linux-2.6.12.2.orig/scripts/Makefile.host
linux-2.6.12.2.new/scripts/Makefile.host
--- linux-2.6.12.2.orig/scripts/Makefile.host 2005-06-30 00:00:53.000000000
+0100
+++ linux-2.6.12.2.new/scripts/Makefile.host 2006-01-16 15:30:24.428019400
+0000
@@ -98,7 +98,8 @@ hostcxx_flags = -Wp,-MD,$(depfile) $(__
# Create executable from a single .c file
# host-csingle -> Executable
quiet_cmd_host-csingle = HOSTCC $@
- cmd_host-csingle = $(HOSTCC) $(hostc_flags) $(HOST_LOADLIBES) -o $@ $<
+ cmd_host-csingle = $(HOSTCC) $(hostc_flags) $(HOST_LOADLIBES) \
+ $(HOSTLOADLIBES_$(@F)) -o $@ $<
$(host-csingle): %: %.c FORCE
$(call if_changed_dep,host-csingle)
diff -pruNE linux-2.6.12.2.orig/scripts/kconfig/Makefile
linux-2.6.12.2.new/scripts/kconfig/Makefile
--- linux-2.6.12.2.orig/scripts/kconfig/Makefile 2005-06-30
00:00:53.000000000 +0100
+++ linux-2.6.12.2.new/scripts/kconfig/Makefile 2006-01-17 16:11:32.521667100
+0000
@@ -1,4 +1,11 @@
# ===========================================================================
+# Local mods. This is for cygwin-hosted builds. Should be harmlessly
+# superfluous on Linux platforms where libintl functionality is in glibc.
+#ifeq (${OSTYPE},cygwin)
+HOST_LOADLIBES := -lintl
+#endif
+
+# ===========================================================================
# Kernel configuration targets
# These targets are used from top-level makefile
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -