71afd50b57b7a43d836c3d7d0a4ae1b4fbf76b57
[openwrt/svn-archive/archive.git] / 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); \