satip-axe/patches/python3-makefile.patch

53 lines
1.9 KiB
Diff
Raw Permalink Normal View History

2017-05-03 17:04:12 +02:00
--- Makefile.orig 2017-05-03 16:45:40.962475569 +0200
+++ Makefile 2017-05-03 16:48:52.644079190 +0200
@@ -618,7 +618,7 @@
2016-02-23 21:03:57 +01:00
*) quiet="";; \
esac; \
$(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \
- _TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \
+ _TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' EXT_SUFFIX='$(EXT_SUFFIX)' \
$(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build
# Build static library
2017-05-03 17:04:12 +02:00
@@ -728,17 +728,19 @@
2016-02-23 21:03:57 +01:00
############################################################################
# Importlib
+FREEZE_IMPORTLIB ?= ./Programs/_freeze_importlib
+
Programs/_freeze_importlib.o: Programs/_freeze_importlib.c Makefile
Programs/_freeze_importlib: Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN)
$(LINKCC) $(PY_LDFLAGS) -o $@ Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
2017-05-03 17:04:12 +02:00
Python/importlib_external.h: # $(srcdir)/Lib/importlib/_bootstrap_external.py Programs/_freeze_importlib
2016-02-23 21:03:57 +01:00
- ./Programs/_freeze_importlib \
+ $(FREEZE_IMPORTLIB) \
2017-05-03 17:04:12 +02:00
$(srcdir)/Lib/importlib/_bootstrap_external.py Python/importlib_external.h
2016-02-23 21:03:57 +01:00
2017-05-03 17:04:12 +02:00
Python/importlib.h: # $(srcdir)/Lib/importlib/_bootstrap.py Programs/_freeze_importlib
2016-02-23 21:03:57 +01:00
- ./Programs/_freeze_importlib \
+ $(FREEZE_IMPORTLIB) \
2017-05-03 17:04:12 +02:00
$(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h
2016-02-23 21:03:57 +01:00
2017-05-03 17:04:12 +02:00
@@ -805,9 +807,6 @@
$(GRAMMAR_C): # $(GRAMMAR_H)
touch $(GRAMMAR_C)
2016-02-23 21:03:57 +01:00
-$(PGEN): $(PGENOBJS)
- $(CC) $(OPT) $(PY_LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
-
Parser/grammar.o: $(srcdir)/Parser/grammar.c \
$(srcdir)/Include/token.h \
$(srcdir)/Include/grammar.h
2017-05-03 17:04:12 +02:00
@@ -1620,7 +1619,7 @@
2016-02-23 21:03:57 +01:00
rm -rf $(COVERAGE_REPORT)
clobber: clean profile-removal
- -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
+ -rm -f $(BUILDPYTHON) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
tags TAGS \
config.cache config.log pyconfig.h Modules/config.c
-rm -rf build platform