⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crosstool-0.38_patches_gcc-3.3.6_gcc-3.3.6-fix-fixincl.patch

📁 做好的交叉编译工具链
💻 PATCH
字号:
diff -ruN crosstool-0.38-orig/patches/gcc-3.3.6/fix-fixincl.patch crosstool-0.38/patches/gcc-3.3.6/fix-fixincl.patch--- crosstool-0.38-orig/patches/gcc-3.3.6/fix-fixincl.patch	1970-01-01 01:00:00.000000000 +0100+++ crosstool-0.38/patches/gcc-3.3.6/fix-fixincl.patch	2005-12-12 16:51:25.000000000 +0100@@ -0,0 +1,30 @@+diff -urN gcc-3.3.3.orig/gcc/Makefile.in gcc-3.3.3/gcc/Makefile.in+--- gcc-3.3.3.orig/gcc/Makefile.in	2004-01-29 05:42:13.000000000 +0100++++ gcc-3.3.3/gcc/Makefile.in	2005-11-15 15:57:10.000000000 +0100+@@ -265,7 +265,10 @@+ CROSS_SYSTEM_HEADER_DIR = @CROSS_SYSTEM_HEADER_DIR@+ + # autoconf sets SYSTEM_HEADER_DIR to one of the above.+-SYSTEM_HEADER_DIR = @SYSTEM_HEADER_DIR@++# Purge it of unneccessary internal relative paths++# to directories that might not exist yet.++# The sed idiom for this is to repeat the search-and-replace until it doesn't match, using :a ... ta.++SYSTEM_HEADER_DIR = `echo @SYSTEM_HEADER_DIR@ | sed -e :a -e "s,[^/]*/\.\.\/,," -e ta`+ + # Control whether to run fixproto and fixincludes.+ STMP_FIXPROTO = @STMP_FIXPROTO@+@@ -2374,11 +2377,13 @@+ 	$(SHELL) ${srcdir}/mkinstalldirs $(gcc_tooldir)+ + # Build fixed copies of system files.++# Abort if no system headers available, unless building a crosscompiler.++# FIXME: abort unless building --without-headers would be more accurate and less ugly+ stmp-fixinc: fixinc.sh gsyslimits.h+ 	@if test ! -d ${SYSTEM_HEADER_DIR}; then \+ 	  echo The directory that should contain system headers does not exist: >&2 ; \+ 	  echo "  ${SYSTEM_HEADER_DIR}" >&2 ; \+-	  if test "x${SYSTEM_HEADER_DIR}" = "x${gcc_tooldir}/sys-include"; \++	  if test "x${SYSTEM_HEADER_DIR}" = "x`echo "${gcc_tooldir}/sys-include" | sed -e :a -e "s,[^/]*/\.\.\/,," -e ta`"; \+ 	  then sleep 1; else exit 1; fi; \+ 	fi+ 	rm -rf include; mkdir include

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -