MINGW-packages/mingw-w64-python/0044-pkg-config-windows-must-link-ext-with-python-lib.patch
2025-04-18 07:39:35 +02:00

24 lines
912 B
Diff

From 856611ce52d08497cc6f6e364f566dd69b945957 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?=
<alexey.pawlow@gmail.com>
Date: Thu, 17 Jun 2021 18:52:29 +0530
Subject: [PATCH 044/N] pkg config windows must link ext with python lib
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 87e8fc6..6843218 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6284,7 +6284,7 @@ AC_MSG_RESULT([$LDVERSION])
# On Android and Cygwin the shared libraries must be linked with libpython.
AC_SUBST([LIBPYTHON])
-if test "$PY_ENABLE_SHARED" = "1" && ( test -n "$ANDROID_API_LEVEL" || test "$MACHDEP" = "cygwin"); then
+if test "$PY_ENABLE_SHARED" = "1" && ( test -n "$ANDROID_API_LEVEL" || test "$MACHDEP" = "cygwin" || test "$MACHDEP" = "win32"); then
LIBPYTHON="-lpython${VERSION}${ABIFLAGS}"
else
LIBPYTHON=''