Changeset 28 for trunk


Ignore:
Timestamp:
Apr 21, 2003, 2:05:12 AM (22 years ago)
Author:
bird
Message:

Workaround for CP=\gcc.exe problem when entering intl.
Workaround for cp vs cp directory problem with ash.w

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gcc/gcc/Makefile.in

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r27 r28  
    113113RANLIB = @RANLIB@
    114114SHELL = /bin/sh
     115
     116# "mkdir cp; cp something cp" doesn't work ash on OS/2.
     117CP = cp@host_exeext@
     118
    115119# on sysV, define this as cp.
    116120INSTALL = @INSTALL@
     
    696700FLAGS_TO_PASS = $(ORDINARY_FLAGS_TO_PASS) "CC=@cc_set_by_configure@" \
    697701        "STAGE_PREFIX=@stage_prefix_set_by_configure@"
     702       
     703# OS/2 have some trouble here. 
     704ifeq "$(BUILD_PLATFORM)" "OS2"
     705PREPEND_DOTDOT_TO_RELATIVE_PATHS = sed -e 's|^ | |'
     706SUBDIR_FLAGS_TO_PASS = $(FLAGS_TO_PASS)
     707else
    698708PREPEND_DOTDOT_TO_RELATIVE_PATHS = sed \
    699709        -e 's|^ *[^ /][^ /]*/|%&|' \
     
    705715        "CC=`echo @quoted_cc_set_by_configure@ | $(PREPEND_DOTDOT_TO_RELATIVE_PATHS)`" \
    706716        "STAGE_PREFIX=`echo @quoted_stage_prefix_set_by_configure@ | $(PREPEND_DOTDOT_TO_RELATIVE_PATHS)`"
     717endif   
     718
    707719#
    708720
     
    838850        $(SHELL) $(srcdir)/configure.frag $(srcdir) "$(SUBDIRS)" \
    839851                "$(xmake_file)" "$(tmake_file)"
    840         cp config.status config.run
     852        $(CP) config.status config.run
    841853        LANGUAGES="$(CONFIG_LANGUAGES)" $(SHELL) config.run
    842854        rm -f config.run
     
    974986# Also create gcc-cross, so that install-common will install properly.
    975987gcc-cross: xgcc$(exeext)
    976         cp xgcc$(exeext) gcc-cross$(exeext)
     988        $(CP) xgcc$(exeext) gcc-cross$(exeext)
    977989
    978990cc1$(exeext): $(C_OBJS) $(BACKEND) $(LIBDEPS)
     
    20922104test-protoize-simple: ./protoize ./unprotoize $(GCC_PASSES)
    20932105        -rm -f tmp-proto.[cso]
    2094         cp $(srcdir)/protoize.c tmp-proto.c
     2106        $(CP) $(srcdir)/protoize.c tmp-proto.c
    20952107        chmod u+w tmp-proto.c
    20962108        ./protoize -N -B ./ -x getopt.h -c "-B./ -Wall -Wwrite-strings \
     
    21462158            $(STAMP) include/$$realfile; \
    21472159            rm -f include/$$realfile; \
    2148             cp $$file include; \
     2160            $(CP) $$file include; \
    21492161            chmod a+r include/$$realfile; \
    21502162          fi; \
    21512163        done
    21522164        rm -f include/limits.h
    2153         cp xlimits.h include/limits.h
     2165        $(CP) xlimits.h include/limits.h
    21542166        chmod a+r include/limits.h
    21552167        rm -f include/float.h
    21562168        if [ x$(FLOAT_H) != xMakefile.in ]; then \
    2157           cp $(srcdir)/config/$(FLOAT_H) include/float.h && \
     2169          $(CP) $(srcdir)/config/$(FLOAT_H) include/float.h && \
    21582170          chmod a+r include/float.h; \
    21592171        else :; fi
    21602172# Install the README
    21612173        rm -f include/README
    2162         cp $(srcdir)/README-fixinc include/README
     2174        $(CP) $(srcdir)/README-fixinc include/README
    21632175        chmod a+r include/README
    21642176        $(STAMP) $@
     
    21972209          mv include/limits.h include/syslimits.h; \
    21982210        else \
    2199           cp $(srcdir)/gsyslimits.h include/syslimits.h; \
     2211          $(CP) $(srcdir)/gsyslimits.h include/syslimits.h; \
    22002212        fi; \
    22012213        chmod a+r include/syslimits.h)
     
    28342846# Install the include directory using cp.
    28352847install-headers-cp: stmp-int-hdrs $(STMP_FIXPROTO) install-include-dir
    2836         cp -p -r include $(DESTDIR)$(libsubdir)
     2848        $(CP) -p -r include $(DESTDIR)$(libsubdir)
    28372849
    28382850# Use this target to install the program `collect2' under the name `collect2'.
     
    32383250        -if [ -f collect-ld$(exeext) ] ; then (cd stage1 && $(LN_S) ../collect-ld$(exeext) .) ; else true ; fi
    32393251        -rm -f stage1/libgcc.a stage1/libgcc_eh.a
    3240         -cp libgcc.a stage1
     3252        -$(CP) libgcc.a stage1
    32413253        -if $(RANLIB_TEST_FOR_TARGET) ; then \
    32423254          $(RANLIB_FOR_TARGET) stage1/libgcc.a; \
    32433255        else true; fi
    3244         -if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage1; \
     3256        -if [ -f libgcc_eh.a ] ; then $(CP) libgcc_eh.a stage1; \
    32453257          if $(RANLIB_TEST_FOR_TARGET) ; then \
    32463258           $(RANLIB_FOR_TARGET) stage1/libgcc_eh.a; \
    32473259          else true; fi; fi
    32483260        -for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
    3249           cp stage1/$${f} . ; \
     3261          $(CP) stage1/$${f} . ; \
    32503262        else true; \
    32513263        fi; done
     
    32673279        -if [ -f collect-ld$(exeext) ] ; then (cd stage2 && $(LN_S) ../collect-ld$(exeext) .) ; else true ; fi
    32683280        -rm -f stage2/libgcc.a stage2/libgcc_eh.a
    3269         -cp libgcc.a stage2
     3281        -$(CP) libgcc.a stage2
    32703282        -if $(RANLIB_TEST_FOR_TARGET) ; then \
    32713283          $(RANLIB_FOR_TARGET) stage2/libgcc.a; \
    32723284        else true; fi
    3273         -if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage2; \
     3285        -if [ -f libgcc_eh.a ] ; then $(CP) libgcc_eh.a stage2; \
    32743286          if $(RANLIB_TEST_FOR_TARGET) ; then \
    32753287           $(RANLIB_FOR_TARGET) stage2/libgcc_eh.a; \
    32763288          else true; fi; fi
    32773289        -for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
    3278           cp stage2/$${f} . ; \
     3290          $(CP) stage2/$${f} . ; \
    32793291        else true; \
    32803292        fi; done
     
    32963308        -if [ -f collect-ld$(exeext) ] ; then (cd stage3 && $(LN_S) ../collect-ld$(exeext) .) ; else true ; fi
    32973309        -rm -f stage3/libgcc.a stage3/libgcc_eh.a
    3298         -cp libgcc.a stage3
     3310        -$(CP) libgcc.a stage3
    32993311        -if $(RANLIB_TEST_FOR_TARGET) ; then \
    33003312          $(RANLIB_FOR_TARGET) stage3/libgcc.a; \
    33013313        else true; fi
    3302         -if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage3; \
     3314        -if [ -f libgcc_eh.a ] ; then $(CP) libgcc_eh.a stage3; \
    33033315          if $(RANLIB_TEST_FOR_TARGET) ; then \
    33043316           $(RANLIB_FOR_TARGET) stage3/libgcc_eh.a; \
    33053317          else true; fi; fi
    33063318        -for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
    3307           cp stage3/$${f} . ; \
     3319          $(CP) stage3/$${f} . ; \
    33083320        else true; \
    33093321        fi; done
     
    33253337        -if [ -f collect-ld$(exeext) ] ; then (cd stage4 && $(LN_S) ../collect-ld$(exeext) .) ; else true ; fi
    33263338        -rm -f stage4/libgcc.a stage4/libgcc_eh.a
    3327         -cp libgcc.a stage4
     3339        -$(CP) libgcc.a stage4
    33283340        -if $(RANLIB_TEST_FOR_TARGET) ; then \
    33293341          $(RANLIB_FOR_TARGET) stage4/libgcc.a; \
    33303342        else true; fi
    3331         -if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage4; \
     3343        -if [ -f libgcc_eh.a ] ; then $(CP) libgcc_eh.a stage4; \
    33323344          if $(RANLIB_TEST_FOR_TARGET) ; then \
    33333345           $(RANLIB_FOR_TARGET) stage4/libgcc_eh.a; \
    33343346          else true; fi; fi
    33353347        -for f in .. $(EXTRA_MULTILIB_PARTS); do if [ x$${f} != x.. ]; then \
    3336           cp stage4/$${f} . ; \
     3348          $(CP) stage4/$${f} . ; \
    33373349        else true; \
    33383350        fi; done
Note: See TracChangeset for help on using the changeset viewer.