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

21eb11
diff -up Python-2.7.6/Makefile.pre.in.no-static-lib Python-2.7.6/Makefile.pre.in
21eb11
--- Python-2.7.6/Makefile.pre.in.no-static-lib	2014-01-29 13:58:32.933226720 +0100
21eb11
+++ Python-2.7.6/Makefile.pre.in	2014-01-29 14:10:25.002247272 +0100
21eb11
@@ -437,7 +437,7 @@ coverage:
23b3e9
 
23b3e9
 
23b3e9
 # Build the interpreter
23b3e9
-$(BUILDPYTHON):	Modules/python.o $(LIBRARY) $(LDLIBRARY)
23b3e9
+$(BUILDPYTHON):	Modules/python.o $(LDLIBRARY)
23b3e9
 		$(LINKCC) $(CFLAGS) $(LDFLAGS) $(LINKFORSHARED) -o $@ \
23b3e9
 			Modules/python.o \
23b3e9
 			$(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
21eb11
@@ -464,18 +464,6 @@ sharedmods: $(BUILDPYTHON) pybuilddir.tx
21eb11
 		_TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \
23b3e9
 		$(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build
23b3e9
 
23b3e9
-# Build static library
23b3e9
-# avoid long command lines, same as LIBRARY_OBJS
23b3e9
-$(LIBRARY): $(LIBRARY_OBJS)
23b3e9
-	-rm -f $@
23b3e9
-	$(AR) $(ARFLAGS) $@ Modules/getbuildinfo.o
23b3e9
-	$(AR) $(ARFLAGS) $@ $(PARSER_OBJS)
23b3e9
-	$(AR) $(ARFLAGS) $@ $(OBJECT_OBJS)
23b3e9
-	$(AR) $(ARFLAGS) $@ $(PYTHON_OBJS)
23b3e9
-	$(AR) $(ARFLAGS) $@ $(MODULE_OBJS) $(SIGNAL_OBJS)
23b3e9
-	$(AR) $(ARFLAGS) $@ $(MODOBJS)
23b3e9
-	$(RANLIB) $@
23b3e9
-
23b3e9
 libpython$(VERSION).so: $(LIBRARY_OBJS)
23b3e9
 	if test $(INSTSONAME) != $(LDLIBRARY); then \
23b3e9
 		$(BLDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
21eb11
@@ -1097,18 +1085,6 @@ libainstall:	all python-config
23b3e9
 		else	true; \
23b3e9
 		fi; \
23b3e9
 	done
23b3e9
-	@if test -d $(LIBRARY); then :; else \
23b3e9
-		if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
23b3e9
-			if test "$(SO)" = .dll; then \
23b3e9
-				$(INSTALL_DATA) $(LDLIBRARY) $(DESTDIR)$(LIBPL) ; \
23b3e9
-			else \
23b3e9
-				$(INSTALL_DATA) $(LIBRARY) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \
23b3e9
-				$(RANLIB) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \
23b3e9
-			fi; \
23b3e9
-		else \
23b3e9
-			echo Skip install of $(LIBRARY) - use make frameworkinstall; \
23b3e9
-		fi; \
23b3e9
-	fi
23b3e9
 	$(INSTALL_DATA) Modules/config.c $(DESTDIR)$(LIBPL)/config.c
23b3e9
 	$(INSTALL_DATA) Modules/python.o $(DESTDIR)$(LIBPL)/python.o
23b3e9
 	$(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(DESTDIR)$(LIBPL)/config.c.in