patch-Makefile_micro 1.3 KB

123456789101112131415161718192021222324252627282930313233
  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 2011-01-16 00:16:05.000000000 +0100
  4. @@ -3,7 +3,7 @@ CCFLAGS = -c
  5. DEFINES = -DPERL_CORE -DPERL_MICRO -DSTANDARD_C -DPERL_USE_SAFE_PUTENV
  6. OPTIMIZE =
  7. CFLAGS = $(DEFINES) $(OPTIMIZE)
  8. -LDFLAGS =
  9. +LDFLAGS ?=
  10. LIBS = -lm
  11. _O = .o
  12. ENV = env
  13. @@ -46,7 +46,7 @@ Config = '$$Config{$$1}'
  14. patch_uconfig:
  15. $(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
  16. -regen_uconfig uconfig.h: uconfig.sh
  17. +regen_uconfig uconfig.h:
  18. $(ENV) CONFIG_SH=uconfig.sh CONFIG_H=uconfig.h sh ./config_h.SH
  19. # Do not regenerate perly.c and perly.h.
  20. @@ -177,9 +177,9 @@ uudmap.h: generate_uudmap$(_X)
  21. $(RUN) ./generate_uudmap$(_X) >uudmap.h
  22. generate_uudmap$(_O): generate_uudmap.c
  23. - $(CC) $(CCFLAGS) -o $@ $(CFLAGS) generate_uudmap.c
  24. + $(CC_FOR_BUILD) $(CCFLAGS) -o $@ $(CFLAGS_FOR_BUILD) generate_uudmap.c
  25. generate_uudmap$(_X): generate_uudmap$(_O)
  26. - $(LD) -o generate_uudmap $(LDFLAGS) generate_uudmap$(_O) $(LIBS)
  27. + $(CC_FOR_BUILD) -o generate_uudmap $(LDFLAGS_FOR_BUILD) generate_uudmap$(_O) $(LIBS)
  28. # That's it, folks!