patch-Makefile_micro 1.0 KB

123456789101112131415161718192021222324
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- perl-5.10.0.orig/Makefile.micro 2007-12-18 11:47:07.000000000 +0100
  3. +++ perl-5.10.0/Makefile.micro 2009-09-14 18:52:23.000000000 +0200
  4. @@ -46,7 +46,7 @@ Config = '$$Config{$$1}'
  5. patch_uconfig:
  6. $(PERL) -MConfig -pi -e "s/^((?:short|int|long(?:dbl|long)?|ptr|double|[iun]v|u?quad|[iu]\d+|fpos|lseek)(?:size|type)|byteorder|d_quad|quadkind|use64.+)=.*/\\1='"$(Config)"'/g" uconfig.shx
  7. -regen_uconfig uconfig.h: uconfig.sh
  8. +regen_uconfig uconfig.h:
  9. $(ENV) CONFIG_SH=uconfig.sh CONFIG_H=uconfig.h sh ./config_h.SH
  10. # Do not regenerate perly.c and perly.h.
  11. @@ -177,9 +177,9 @@ uudmap.h: generate_uudmap$(_X)
  12. $(RUN) ./generate_uudmap$(_X) >uudmap.h
  13. generate_uudmap$(_O): generate_uudmap.c
  14. - $(CC) $(CCFLAGS) -o $@ $(CFLAGS) generate_uudmap.c
  15. + $(HOSTCC) $(CCFLAGS) -o $@ $(HOSTCFLAGS) generate_uudmap.c
  16. generate_uudmap$(_X): generate_uudmap$(_O)
  17. - $(LD) -o generate_uudmap $(LDFLAGS) generate_uudmap$(_O) $(LIBS)
  18. + $(HOSTCC) -o generate_uudmap $(HOSTLDFLAGS) generate_uudmap$(_O) $(LIBS)
  19. # That's it, folks!