add uclibc++ (from packages)
[openwrt/svn-archive/archive.git] / package / uclibc++ / patches / 003-cp_command.patch
1 diff -ur old/src/Makefile dev/src/Makefile
2 --- old/src/Makefile Sat Oct 14 17:49:54 2006
3 +++ dev/src/Makefile Sat Oct 14 18:02:30 2006
4 @@ -25,12 +25,14 @@
5
6 all: libgcc_eh libsupc $(EXOBJS) $(ALLBIN)
7
8 +CP = cp -fPR
9 +
10 install:
11 $(INSTALL) -d $(PREFIX)$(UCLIBCXX_RUNTIME_LIBDIR)
12 ifneq ($(BUILD_ONLY_STATIC_LIB),y)
13 $(INSTALL) -m 755 $(SHARED_FULLNAME) \
14 $(PREFIX)$(UCLIBCXX_RUNTIME_LIBDIR)
15 - cp -fa $(SHARED_MAJORNAME) $(LIBNAME).so $(PREFIX)$(UCLIBCXX_RUNTIME_LIBDIR)
16 + $(CP) $(SHARED_MAJORNAME) $(LIBNAME).so $(PREFIX)$(UCLIBCXX_RUNTIME_LIBDIR)
17 endif
18 ifeq ($(BUILD_STATIC_LIB),y)
19 $(INSTALL) -m 644 $(LIBNAME).a $(PREFIX)$(UCLIBCXX_RUNTIME_LIBDIR)