$OpenBSD: patch-Makefile_pre_in,v 1.1 2002/02/15 19:42:18 matt Exp $
--- Makefile.pre.in.orig	Wed Dec 19 04:24:40 2001
+++ Makefile.pre.in	Fri Feb  8 22:24:40 2002
@@ -294,7 +294,7 @@ all:		$(BUILDPYTHON) oldsharedmods share
 $(BUILDPYTHON):	Modules/$(MAINOBJ) $(LDLIBRARY)
 		$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \
 			Modules/$(MAINOBJ) \
-			$(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
+			-lpython$(VERSION) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
 
 platform: $(BUILDPYTHON)
 	./$(BUILDPYTHON) -E -c 'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
@@ -345,6 +345,10 @@ libpython$(VERSION).so:	$(LIBRARY)
 	    ;; \
 	esac
 
+# This rule for OpenBSD...
+libpython$(VERSION).so.$(MAJOR).$(MINOR):	$(LIBRARY)
+	$(LDSHARED) -o $@ $(LIBRARY_OBJS)
+
 # This rule is here for OPENSTEP/Rhapsody/MacOSX
 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): $(LIBRARY) $(PYTHONFRAMEWORKDIR)
 	libtool -o $(LDLIBRARY) -dynamic $(OTHER_LIBTOOL_OPT) $(LIBRARY) \
@@ -576,7 +580,7 @@ maninstall:
 		fi; \
 	done
 	$(INSTALL_DATA) $(srcdir)/Misc/python.man \
-		$(MANDIR)/man1/python.1
+		$(MANDIR)/man1/python2.2.1
 
 # Install the library
 PLATDIR=	plat-$(MACHDEP)
