Blame SOURCES/00111-no-static-lib.patch

dd3773
diff --git a/Makefile.pre.in b/Makefile.pre.in
dd3773
index 9cd482f..b074b26 100644
dd3773
--- a/Makefile.pre.in
dd3773
+++ b/Makefile.pre.in
dd3773
@@ -549,7 +549,7 @@ clinic: check-clean-src $(srcdir)/Modules/_blake2/blake2s_impl.c
dd3773
 	$(PYTHON_FOR_REGEN) ./Tools/clinic/clinic.py --make
dd3773
 
dd3773
 # Build the interpreter
dd3773
-$(BUILDPYTHON):	Programs/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
dd3773
+$(BUILDPYTHON):	Programs/python.o $(LDLIBRARY) $(PY3LIBRARY)
dd3773
 	$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
dd3773
 
dd3773
 platform: $(BUILDPYTHON) pybuilddir.txt
dd3773
@@ -597,12 +597,6 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o
dd3773
 		_TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \
dd3773
 		$(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build
dd3773
 
dd3773
-
dd3773
-# Build static library
dd3773
-$(LIBRARY): $(LIBRARY_OBJS)
dd3773
-	-rm -f $@
dd3773
-	$(AR) $(ARFLAGS) $@ $(LIBRARY_OBJS)
dd3773
-
dd3773
 libpython$(LDVERSION).so: $(LIBRARY_OBJS)
dd3773
 	if test $(INSTSONAME) != $(LDLIBRARY); then \
dd3773
 		$(BLDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
dd3773
@@ -692,7 +686,7 @@ Modules/Setup: $(srcdir)/Modules/Setup.dist
dd3773
 		echo "-----------------------------------------------"; \
dd3773
 	fi
dd3773
 
dd3773
-Programs/_testembed: Programs/_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
dd3773
+Programs/_testembed: Programs/_testembed.o $(LDLIBRARY) $(PY3LIBRARY)
dd3773
 	$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/_testembed.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
dd3773
 
dd3773
 ############################################################################
dd3773
@@ -1428,17 +1422,6 @@ libainstall:	@DEF_MAKE_RULE@ python-config
dd3773
 		else	true; \
dd3773
 		fi; \
dd3773
 	done
dd3773
-	@if test -d $(LIBRARY); then :; else \
dd3773
-		if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
dd3773
-			if test "$(SHLIB_SUFFIX)" = .dll; then \
dd3773
-				$(INSTALL_DATA) $(LDLIBRARY) $(DESTDIR)$(LIBPL) ; \
dd3773
-			else \
dd3773
-				$(INSTALL_DATA) $(LIBRARY) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \
dd3773
-			fi; \
dd3773
-		else \
dd3773
-			echo Skip install of $(LIBRARY) - use make frameworkinstall; \
dd3773
-		fi; \
dd3773
-	fi
dd3773
 	$(INSTALL_DATA) Modules/config.c $(DESTDIR)$(LIBPL)/config.c
dd3773
 	$(INSTALL_DATA) Programs/python.o $(DESTDIR)$(LIBPL)/python.o
dd3773
 	$(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(DESTDIR)$(LIBPL)/config.c.in