X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/54cf5c5fc5064eddeacf9480a58eb2b35c1a4642..81d3bb5d22cc2c87d495e9c303d88e4cda25f641:/toolchain/uClibc/patches/150-portability.patch?ds=sidebyside diff --git a/toolchain/uClibc/patches/150-portability.patch b/toolchain/uClibc/patches/150-portability.patch index b29c16ee0..c3a85107c 100644 --- a/toolchain/uClibc/patches/150-portability.patch +++ b/toolchain/uClibc/patches/150-portability.patch @@ -8,7 +8,7 @@ Fix portability of build infrastructure $(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)lib $(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)include -$(INSTALL) -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)lib/ -- if [ "$(KERNEL_SOURCE)" == "$(DEVEL_PREFIX)" ] ; then \ +- if [ "$(KERNEL_SOURCE)" = "$(DEVEL_PREFIX)" ] ; then \ - extra_exclude="--exclude include/linux --exclude include/asm'*'" ; \ - else \ - extra_exclude="" ; \ @@ -23,16 +23,7 @@ Fix portability of build infrastructure $(INSTALL) -m 644 lib/lib*-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \ $(PREFIX)$(RUNTIME_PREFIX)lib - cp -dRf lib/*.so.* $(PREFIX)$(RUNTIME_PREFIX)lib -+ cp -PRf lib/*.so.* $(PREFIX)$(RUNTIME_PREFIX)lib ++ cp -pRf lib/*.so.* $(PREFIX)$(RUNTIME_PREFIX)lib @if [ -x lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so ] ; then \ set -e; \ $(SHELL_SET_X); \ -@@ -370,7 +365,7 @@ distclean: clean - release: distclean - cd ..; \ - $(RM) -r uClibc-$(VERSION); \ -- cp -dRf uClibc uClibc-$(VERSION); \ -+ cp -PRf uClibc uClibc-$(VERSION); \ - find uClibc-$(VERSION)/ -type f \ - -name .\#* -exec $(RM) -r {} \; ; \ - find uClibc-$(VERSION)/ -type d \