patch-Makefile_pre_in 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --- Python-2.7.5.orig/Makefile.pre.in 2013-05-12 05:32:49.000000000 +0200
  2. +++ Python-2.7.5/Makefile.pre.in 2013-11-01 14:54:24.000000000 +0100
  3. @@ -227,6 +227,7 @@ LIBFFI_INCLUDEDIR= @LIBFFI_INCLUDEDIR@
  4. ##########################################################################
  5. # Parser
  6. PGEN= Parser/pgen$(EXE)
  7. +HOSTPGEN?= Parser/pgen$(EXE)
  8. PSRCS= \
  9. Parser/acceler.c \
  10. @@ -456,7 +457,7 @@ sharedmods: $(BUILDPYTHON) pybuilddir.tx
  11. *) quiet="";; \
  12. esac; \
  13. $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \
  14. - $(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build
  15. + $(PYTHON_FOR_BUILD) $(srcdir)/setup.py build
  16. # Build static library
  17. # avoid long command lines, same as LIBRARY_OBJS
  18. @@ -593,7 +594,7 @@ Modules/pwdmodule.o: $(srcdir)/Modules/p
  19. $(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGENSRCS)
  20. @$(MKDIR_P) Include
  21. $(MAKE) $(PGEN)
  22. - $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
  23. + $(HOSTPGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
  24. $(GRAMMAR_C): $(GRAMMAR_H) $(GRAMMAR_INPUT) $(PGENSRCS)
  25. $(MAKE) $(GRAMMAR_H)
  26. touch $(GRAMMAR_C)
  27. @@ -1000,28 +1001,6 @@ libinstall: build_all $(srcdir)/Lib/$(PL
  28. $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \
  29. $(DESTDIR)$(LIBDEST)/distutils/tests ; \
  30. fi
  31. - PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
  32. - $(PYTHON_FOR_BUILD) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
  33. - -d $(LIBDEST) -f \
  34. - -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
  35. - $(DESTDIR)$(LIBDEST)
  36. - PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
  37. - $(PYTHON_FOR_BUILD) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
  38. - -d $(LIBDEST) -f \
  39. - -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
  40. - $(DESTDIR)$(LIBDEST)
  41. - -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
  42. - $(PYTHON_FOR_BUILD) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
  43. - -d $(LIBDEST)/site-packages -f \
  44. - -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
  45. - -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
  46. - $(PYTHON_FOR_BUILD) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
  47. - -d $(LIBDEST)/site-packages -f \
  48. - -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
  49. - -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
  50. - $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt
  51. - -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
  52. - $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt
  53. # Create the PLATDIR source directory, if one wasn't distributed..
  54. $(srcdir)/Lib/$(PLATDIR):