add uclibc portability patch (by thorsten glaser)
[openwrt/staging/dedeckeh.git] / openwrt / toolchain / uClibc / patches / 150-portability.patch
1 Fix portability of build infrastructure
2 * cp -d -> cp -P
3 * tar --exclude is a GNU tar feature
4
5 --- uClibc-0.9.28/Makefile.orig Sun Jun 11 19:08:56 2006
6 +++ uClibc-0.9.28/Makefile Sun Jun 11 19:12:05 2006
7 @@ -158,12 +158,7 @@ install_dev:
8 $(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)lib
9 $(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)include
10 -$(INSTALL) -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)lib/
11 - if [ "$(KERNEL_SOURCE)" == "$(DEVEL_PREFIX)" ] ; then \
12 - extra_exclude="--exclude include/linux --exclude include/asm'*'" ; \
13 - else \
14 - extra_exclude="" ; \
15 - fi ; \
16 - tar -chf - include --exclude .svn --exclude CVS $$extra_exclude \
17 + tar -chf - include \
18 | tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
19 ifneq ($(strip $(UCLIBC_HAS_FLOATS)),y)
20 # Remove floating point related headers since float support is disabled.
21 @@ -253,7 +248,7 @@ ifeq ($(strip $(HAVE_SHARED)),y)
22 $(INSTALL) -d $(PREFIX)$(RUNTIME_PREFIX)lib
23 $(INSTALL) -m 644 lib/lib*-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
24 $(PREFIX)$(RUNTIME_PREFIX)lib
25 - cp -dRf lib/*.so.* $(PREFIX)$(RUNTIME_PREFIX)lib
26 + cp -PRf lib/*.so.* $(PREFIX)$(RUNTIME_PREFIX)lib
27 @if [ -x lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so ] ; then \
28 set -e; \
29 $(SHELL_SET_X); \
30 @@ -370,7 +365,7 @@ distclean: clean
31 release: distclean
32 cd ..; \
33 $(RM) -r uClibc-$(VERSION); \
34 - cp -dRf uClibc uClibc-$(VERSION); \
35 + cp -PRf uClibc uClibc-$(VERSION); \
36 find uClibc-$(VERSION)/ -type f \
37 -name .\#* -exec $(RM) -r {} \; ; \
38 find uClibc-$(VERSION)/ -type d \