Blame 00111-no-static-lib.patch

bf1e00d
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
Victor Stinner 761bbd3
From: David Malcolm <dmalcolm@redhat.com>
Victor Stinner 761bbd3
Date: Mon, 18 Jan 2010 17:59:07 +0000
Victor Stinner 761bbd3
Subject: [PATCH] 00111: Don't try to build a libpythonMAJOR.MINOR.a
Victor Stinner 761bbd3
MIME-Version: 1.0
Victor Stinner 761bbd3
Content-Type: text/plain; charset=UTF-8
Victor Stinner 761bbd3
Content-Transfer-Encoding: 8bit
Victor Stinner 761bbd3
Victor Stinner 761bbd3
Downstream only: not appropriate for upstream.
Victor Stinner 761bbd3
Victor Stinner 761bbd3
See https://bugzilla.redhat.com/show_bug.cgi?id=556092
Victor Stinner 761bbd3
Victor Stinner 761bbd3
Co-authored-by: David Malcolm <dmalcolm@redhat.com>
Victor Stinner 761bbd3
Co-authored-by: Bohuslav Kabrda <bkabrda@redhat.com>
Victor Stinner 761bbd3
Co-authored-by: Matej Stuchlik <mstuchli@redhat.com>
Victor Stinner 761bbd3
Co-authored-by: Robert Kuska <rkuska@redhat.com>
Victor Stinner 761bbd3
Co-authored-by: Charalampos Stratakis <cstratak@redhat.com>
Victor Stinner 761bbd3
Co-authored-by: Miro HronĨok <miro@hroncok.cz>
Victor Stinner 761bbd3
---
Victor Stinner 761bbd3
 Makefile.pre.in | 21 ++-------------------
Victor Stinner 761bbd3
 1 file changed, 2 insertions(+), 19 deletions(-)
Victor Stinner 761bbd3
0424a4f
diff --git a/Makefile.pre.in b/Makefile.pre.in
Victor Stinner 761bbd3
index 9cd482fc38..b074b26039 100644
0424a4f
--- a/Makefile.pre.in
0424a4f
+++ b/Makefile.pre.in
0b48557
@@ -549,7 +549,7 @@ clinic: check-clean-src $(srcdir)/Modules/_blake2/blake2s_impl.c
9a2e4be
 	$(PYTHON_FOR_REGEN) ./Tools/clinic/clinic.py --make
aa4aef2
 
aa4aef2
 # Build the interpreter
Matej Stuchlik abb2ff8
-$(BUILDPYTHON):	Programs/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
0424a4f
+$(BUILDPYTHON):	Programs/python.o $(LDLIBRARY) $(PY3LIBRARY)
0b48557
 	$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
5080ffc
 
58f477b
 platform: $(BUILDPYTHON) pybuilddir.txt
0b48557
@@ -597,12 +597,6 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o
0b48557
 		_TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \
62d7207
 		$(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build
aa4aef2
 
0b48557
-
aa4aef2
-# Build static library
aa4aef2
-$(LIBRARY): $(LIBRARY_OBJS)
aa4aef2
-	-rm -f $@
0b48557
-	$(AR) $(ARFLAGS) $@ $(LIBRARY_OBJS)
aa4aef2
-
5080ffc
 libpython$(LDVERSION).so: $(LIBRARY_OBJS)
aa4aef2
 	if test $(INSTSONAME) != $(LDLIBRARY); then \
5080ffc
 		$(BLDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
0b48557
@@ -692,7 +686,7 @@ Modules/Setup: $(srcdir)/Modules/Setup.dist
cce760d
 		echo "-----------------------------------------------"; \
cce760d
 	fi
cce760d
 
Matej Stuchlik abb2ff8
-Programs/_testembed: Programs/_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
Matej Stuchlik abb2ff8
+Programs/_testembed: Programs/_testembed.o $(LDLIBRARY) $(PY3LIBRARY)
0b48557
 	$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/_testembed.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
cce760d
 
cce760d
 ############################################################################
0b48557
@@ -1428,17 +1422,6 @@ libainstall:	@DEF_MAKE_RULE@ python-config
aa4aef2
 		else	true; \
aa4aef2
 		fi; \
aa4aef2
 	done
aa4aef2
-	@if test -d $(LIBRARY); then :; else \
aa4aef2
-		if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
58f477b
-			if test "$(SHLIB_SUFFIX)" = .dll; then \
aa4aef2
-				$(INSTALL_DATA) $(LDLIBRARY) $(DESTDIR)$(LIBPL) ; \
aa4aef2
-			else \
aa4aef2
-				$(INSTALL_DATA) $(LIBRARY) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \
aa4aef2
-			fi; \
aa4aef2
-		else \
aa4aef2
-			echo Skip install of $(LIBRARY) - use make frameworkinstall; \
aa4aef2
-		fi; \
aa4aef2
-	fi
aa4aef2
 	$(INSTALL_DATA) Modules/config.c $(DESTDIR)$(LIBPL)/config.c
Matej Stuchlik abb2ff8
 	$(INSTALL_DATA) Programs/python.o $(DESTDIR)$(LIBPL)/python.o
aa4aef2
 	$(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(DESTDIR)$(LIBPL)/config.c.in