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

93c559
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
93c559
From: David Malcolm <dmalcolm@redhat.com>
93c559
Date: Mon, 18 Jan 2010 17:59:07 +0000
93c559
Subject: [PATCH] 00111: Don't try to build a libpythonMAJOR.MINOR.a
93c559
MIME-Version: 1.0
93c559
Content-Type: text/plain; charset=UTF-8
93c559
Content-Transfer-Encoding: 8bit
93c559
93c559
Downstream only: not appropriate for upstream.
93c559
93c559
See https://bugzilla.redhat.com/show_bug.cgi?id=556092
93c559
93c559
Co-authored-by: David Malcolm <dmalcolm@redhat.com>
93c559
Co-authored-by: Bohuslav Kabrda <bkabrda@redhat.com>
93c559
Co-authored-by: Matej Stuchlik <mstuchli@redhat.com>
93c559
Co-authored-by: Robert Kuska <rkuska@redhat.com>
93c559
Co-authored-by: Charalampos Stratakis <cstratak@redhat.com>
93c559
Co-authored-by: Miro HronĨok <miro@hroncok.cz>
93c559
---
93c559
 Makefile.pre.in | 21 ++-------------------
93c559
 1 file changed, 2 insertions(+), 19 deletions(-)
93c559
93c559
diff --git a/Makefile.pre.in b/Makefile.pre.in
93c559
index f128444b98..22f25e159d 100644
93c559
--- a/Makefile.pre.in
93c559
+++ b/Makefile.pre.in
93c559
@@ -586,7 +586,7 @@ clinic: check-clean-src $(srcdir)/Modules/_blake2/blake2s_impl.c
93c559
 	$(PYTHON_FOR_REGEN) $(srcdir)/Tools/clinic/clinic.py --make --srcdir $(srcdir)
93c559
 
93c559
 # Build the interpreter
93c559
-$(BUILDPYTHON):	Programs/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY) $(EXPORTSYMS)
93c559
+$(BUILDPYTHON):	Programs/python.o $(LDLIBRARY) $(PY3LIBRARY) $(EXPORTSYMS)
93c559
 	$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS)
93c559
 
93c559
 platform: $(BUILDPYTHON) pybuilddir.txt
93c559
@@ -634,12 +634,6 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o
93c559
 		_TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \
93c559
 		$(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build
93c559
 
93c559
-
93c559
-# Build static library
93c559
-$(LIBRARY): $(LIBRARY_OBJS)
93c559
-	-rm -f $@
93c559
-	$(AR) $(ARFLAGS) $@ $(LIBRARY_OBJS)
93c559
-
93c559
 libpython$(LDVERSION).so: $(LIBRARY_OBJS) $(DTRACE_OBJS)
93c559
 	if test $(INSTSONAME) != $(LDLIBRARY); then \
93c559
 		$(BLDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM); \
93c559
@@ -721,7 +715,7 @@ Makefile Modules/config.c: Makefile.pre \
93c559
 	@echo "The Makefile was updated, you may need to re-run make."
93c559
 
93c559
 
93c559
-Programs/_testembed: Programs/_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY) $(EXPORTSYMS)
93c559
+Programs/_testembed: Programs/_testembed.o $(LDLIBRARY) $(PY3LIBRARY) $(EXPORTSYMS)
93c559
 	$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/_testembed.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS)
93c559
 
93c559
 ############################################################################
93c559
@@ -1631,17 +1625,6 @@ libainstall:	@DEF_MAKE_RULE@ python-config
93c559
 		else	true; \
93c559
 		fi; \
93c559
 	done
93c559
-	@if test -d $(LIBRARY); then :; else \
93c559
-		if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
93c559
-			if test "$(SHLIB_SUFFIX)" = .dll; then \
93c559
-				$(INSTALL_DATA) $(LDLIBRARY) $(DESTDIR)$(LIBPL) ; \
93c559
-			else \
93c559
-				$(INSTALL_DATA) $(LIBRARY) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \
93c559
-			fi; \
93c559
-		else \
93c559
-			echo Skip install of $(LIBRARY) - use make frameworkinstall; \
93c559
-		fi; \
93c559
-	fi
93c559
 	$(INSTALL_DATA) Modules/config.c $(DESTDIR)$(LIBPL)/config.c
93c559
 	$(INSTALL_DATA) Programs/python.o $(DESTDIR)$(LIBPL)/python.o
93c559
 	$(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(DESTDIR)$(LIBPL)/config.c.in