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

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