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

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