churchyard / rpms / python3

Forked from rpms/python3 3 years ago
Clone

Blame 00111-no-static-lib.patch

0424a4f
diff --git a/Makefile.pre.in b/Makefile.pre.in
1385d6e
index 0db0dd0..bd8f769 100644
0424a4f
--- a/Makefile.pre.in
0424a4f
+++ b/Makefile.pre.in
1385d6e
@@ -574,7 +574,7 @@ clinic: check-clean-src $(srcdir)/Modules/_blake2/blake2s_impl.c
ef18b45
 	$(PYTHON_FOR_REGEN) $(srcdir)/Tools/clinic/clinic.py --make --srcdir $(srcdir)
aa4aef2
 
aa4aef2
 # Build the interpreter
Matej Stuchlik abb2ff8
-$(BUILDPYTHON):	Programs/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
0424a4f
+$(BUILDPYTHON):	Programs/python.o $(LDLIBRARY) $(PY3LIBRARY)
1385d6e
 	$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
5080ffc
 
58f477b
 platform: $(BUILDPYTHON) pybuilddir.txt
1385d6e
@@ -622,12 +622,6 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o
d668c1e
 		_TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \
62d7207
 		$(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build
aa4aef2
 
d668c1e
-
aa4aef2
-# Build static library
aa4aef2
-$(LIBRARY): $(LIBRARY_OBJS)
aa4aef2
-	-rm -f $@
d668c1e
-	$(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); \
1385d6e
@@ -715,7 +709,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)
1385d6e
 	$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/_testembed.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
cce760d
 
cce760d
 ############################################################################
1385d6e
@@ -1483,17 +1477,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