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

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