瀏覽代碼

install stdio_lim.h via install-headers

Waldemar Brodkorb 14 年之前
父節點
當前提交
afb0d4c43c
共有 2 個文件被更改,包括 31 次插入1 次删除
  1. 0 1
      toolchain/glibc/Makefile
  2. 31 0
      toolchain/glibc/patches/stdio_lim.patch

+ 0 - 1
toolchain/glibc/Makefile

@@ -62,7 +62,6 @@ $(WRKBUILD)/.headers: $(WRKBUILD)/.headers_configure
 		install_root=$(TOOLCHAIN_SYSROOT) \
 		install-headers
 	touch $(TOOLCHAIN_SYSROOT)/usr/include/gnu/stubs.h
-	touch $(TOOLCHAIN_SYSROOT)/usr/include/bits/stdio_lim.h
 	touch $@
 
 $(WRKBUILD)/.configured: 

+ 31 - 0
toolchain/glibc/patches/stdio_lim.patch

@@ -0,0 +1,31 @@
+diff -Nur glibc-2.11.orig/stdio-common/Makefile glibc-2.11/stdio-common/Makefile
+--- glibc-2.11.orig/stdio-common/Makefile	2009-10-30 18:17:08.000000000 +0100
++++ glibc-2.11/stdio-common/Makefile	2009-12-30 23:52:08.000000000 +0100
+@@ -21,7 +21,7 @@
+ #
+ subdir	:= stdio-common
+ 
+-headers	:= stdio_ext.h printf.h bits/printf-ldbl.h
++headers	:= stdio_ext.h printf.h bits/printf-ldbl.h bits/stdio_lim.h
+ 
+ routines	:=							      \
+ 	ctermid cuserid							      \
+@@ -40,8 +40,6 @@
+ 	isoc99_vsscanf							      \
+ 	psiginfo
+ 
+-install-others = $(inst_includedir)/bits/stdio_lim.h
+-
+ include ../Makeconfig
+ 
+ aux	:= errlist siglist printf-parsemb printf-parsewc fxprintf
+@@ -66,9 +64,6 @@
+ 
+ include ../Rules
+ 
+-$(inst_includedir)/bits/stdio_lim.h: $(common-objpfx)bits/stdio_lim.h $(+force)
+-	$(do-install)
+-
+ ifeq ($(cross-compiling),no)
+ .PHONY: do-tst-unbputc do-tst-printf
+ tests: do-tst-unbputc do-tst-printf