Browse Source

Use tar rather than cp to copy all files matching *.so.* from the lib
directory to $(PREFIX)$(RUNTIME_PREFIX)lib. The reason for this is
that cp -P means wildly different things depending on the version of cp.

Peter Kjellerstedt 18 years ago
parent
commit
3abe19e38f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Makefile.in

+ 1 - 1
Makefile.in

@@ -253,7 +253,7 @@ ifeq ($(HAVE_SHARED),y)
 	$(INSTALL) -d $(PREFIX)$(RUNTIME_PREFIX)lib
 	$(INSTALL) -m 644 lib/lib*-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
 		$(PREFIX)$(RUNTIME_PREFIX)lib
-	cp -PRf lib/*.so.* $(PREFIX)$(RUNTIME_PREFIX)lib
+	cd lib && $(TAR) -cf - *.so.* | $(TAR) -xf - -C $(PREFIX)$(RUNTIME_PREFIX)lib
 	@if [ -x lib/$(UCLIBC_LDSO_NAME)-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so ] ; then \
 	    set -e; \
 		$(SHELL_SET_X); \