?? crosstool-0.38_patches_linux-2.6.14_fix-build-on-nls-free-systems.patch
字號:
diff -ruN crosstool-0.38-orig/patches/linux-2.6.14/fix-build-on-nls-free-systems.patch crosstool-0.38/patches/linux-2.6.14/fix-build-on-nls-free-systems.patch--- crosstool-0.38-orig/patches/linux-2.6.14/fix-build-on-nls-free-systems.patch 1970-01-01 01:00:00.000000000 +0100+++ crosstool-0.38/patches/linux-2.6.14/fix-build-on-nls-free-systems.patch 2006-01-25 00:25:03.000000000 +0100@@ -0,0 +1,72 @@+# +# Submitted-By: Marc Kleine-Budde, 2006-01-24+# Committed-By: Marc Kleine-Budde+#+# Error: +#+# HOSTCC scripts/basic/docproc+# SHIPPED scripts/kconfig/zconf.tab.h+# HOSTCC scripts/kconfig/conf.o+# In file included from scripts/kconfig/conf.c:14:+# scripts/kconfig/lkc.h:11:21: error: libintl.h: No such file or directory+# scripts/kconfig/conf.c: In function 'check_stdin':+# scripts/kconfig/conf.c:59: warning: implicit declaration of function 'gettext'+# scripts/kconfig/conf.c:59: warning: incompatible implicit declaration of built-in function 'gettext'+# scripts/kconfig/conf.c: In function 'check_conf':+# scripts/kconfig/conf.c:473: warning: incompatible implicit declaration of built-in function 'gettext'+# scripts/kconfig/conf.c: In function 'main':+# scripts/kconfig/conf.c:507: warning: incompatible implicit declaration of built-in function 'gettext'+# scripts/kconfig/conf.c:533: warning: incompatible implicit declaration of built-in function 'gettext'+# scripts/kconfig/conf.c:550: warning: incompatible implicit declaration of built-in function 'gettext'+# scripts/kconfig/conf.c:579: warning: incompatible implicit declaration of built-in function 'gettext'+# make[2]: *** [scripts/kconfig/conf.o] Error 1+# make[1]: *** [oldconfig] Error 2+#+# Description: +#+# Kconfig failed on gettext-less systems+# https://bugs.gentoo.org/show_bug.cgi?id=99810+#+# State:+# +# patch from:+# https://bugs.gentoo.org/attachment.cgi?id=71887&action=view+# fixed in -mm kernel-tree+#+diff -Naur linux-2.6.14_rc2.orig/scripts/kconfig/Makefile linux-2.6.14_rc2/scripts/kconfig/Makefile+--- linux-2.6.14_rc2.orig/scripts/kconfig/Makefile 2005-11-06 04:13:01 +0000++++ linux-2.6.14_rc2/scripts/kconfig/Makefile 2005-11-18 03:52:03 +0000+@@ -116,6 +116,15 @@+ clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \+ .tmp_gtkcheck zconf.tab.c zconf.tab.h lex.zconf.c+ ++# Needed for systems without gettext++KBUILD_HAVE_NLS := $(shell \++ if echo "\#include <libintl.h>" | $(HOSTCC) $(HOSTCFLAGS) -E - > /dev/null 2>&1 ; \++ then echo yes ; \++ else echo no ; fi)++ifeq ($(KBUILD_HAVE_NLS),no)++HOSTCFLAGS += -DKBUILD_NO_NLS++endif+++ # generated files seem to need this to find local include files+ HOSTCFLAGS_lex.zconf.o := -I$(src)+ HOSTCFLAGS_zconf.tab.o := -I$(src)+diff -Naur linux-2.6.14_rc2.orig/scripts/kconfig/lkc.h linux-2.6.14_rc2/scripts/kconfig/lkc.h+--- linux-2.6.14_rc2.orig/scripts/kconfig/lkc.h 2005-11-06 04:13:01 +0000++++ linux-2.6.14_rc2/scripts/kconfig/lkc.h 2005-11-18 02:23:07 +0000+@@ -8,7 +8,13 @@+ + #include "expr.h"+ +-#include <libintl.h>++#ifndef KBUILD_NO_NLS++# include <libintl.h>++#else++# define gettext(Msgid) ((const char *) (Msgid))++# define textdomain(Domainname) ((const char *) (Domainname))++# define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname))++#endif+ + #ifdef __cplusplus+ extern "C" {
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -