Issue #12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling.
diff --git a/Misc/ACKS b/Misc/ACKS
index 9ac162f..4a2c06e 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -829,6 +829,7 @@
 Paul Sokolovsky
 Cody Somerville
 Clay Spence
+Stefan Sperling
 Per Spilling
 Joshua Spoerri
 Noah Spurrier
diff --git a/Misc/NEWS b/Misc/NEWS
index 4513f9a..3fcdc96 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -37,6 +37,8 @@
 Library
 -------
 
+- Issue #12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling.
+
 - Issue #1813: Fix codec lookup under Turkish locales.
 
 - Issue #12591: Improve support of "universal newlines" in the subprocess
diff --git a/configure b/configure
index 21c9d17..3563be5 100755
--- a/configure
+++ b/configure
@@ -4950,7 +4950,7 @@
 	      PY3LIBRARY=libpython3.so
 	  fi
           ;;
-    Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
+    Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
 	  LDLIBRARY='libpython$(LDVERSION).so'
 	  BLDLIBRARY='-L. -lpython$(LDVERSION)'
 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
diff --git a/configure.in b/configure.in
index c439d5a..5a411fe 100644
--- a/configure.in
+++ b/configure.in
@@ -755,7 +755,7 @@
 	      PY3LIBRARY=libpython3.so
 	  fi
           ;;
-    Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
+    Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
 	  LDLIBRARY='libpython$(LDVERSION).so'
 	  BLDLIBRARY='-L. -lpython$(LDVERSION)'
 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}