49 lines
1.5 KiB
Diff
49 lines
1.5 KiB
Diff
From 5ab5893f00c4b2b74bb39f528ffaae791b594ca2 Mon Sep 17 00:00:00 2001
|
|
From: Christoph Reiter <reiter.christoph@gmail.com>
|
|
Date: Tue, 6 Jan 2026 12:45:54 +0100
|
|
Subject: [PATCH 012/N] build: Add dynload_win support for MinGW
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Co-authored-by: Алексей <alexey.pawlow@gmail.com>
|
|
---
|
|
Makefile.pre.in | 6 ++++++
|
|
configure.ac | 6 ++++++
|
|
2 files changed, 12 insertions(+)
|
|
|
|
diff --git a/Makefile.pre.in b/Makefile.pre.in
|
|
index dd91a4c..190d71f 100644
|
|
--- a/Makefile.pre.in
|
|
+++ b/Makefile.pre.in
|
|
@@ -1738,6 +1738,12 @@ Python/dynload_hpux.o: $(srcdir)/Python/dynload_hpux.c Makefile
|
|
-DSHLIB_EXT='"$(EXT_SUFFIX)"' \
|
|
-o $@ $(srcdir)/Python/dynload_hpux.c
|
|
|
|
+Python/dynload_win.o: $(srcdir)/Python/dynload_win.c Makefile
|
|
+ $(CC) -c $(PY_CORE_CFLAGS) \
|
|
+ -DPYD_PLATFORM_TAG='"$(PYD_PLATFORM_TAG)"' \
|
|
+ -DPY3_DLLNAME='L"$(DLLLIBRARY)"' \
|
|
+ -o $@ $(srcdir)/Python/dynload_win.c
|
|
+
|
|
Python/sysmodule.o: $(srcdir)/Python/sysmodule.c Makefile $(srcdir)/Include/pydtrace.h
|
|
$(CC) -c $(PY_CORE_CFLAGS) \
|
|
-DABIFLAGS='"$(ABIFLAGS)"' \
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 0ce6f6d..c8dabee 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -5294,6 +5294,12 @@ then
|
|
fi
|
|
;;
|
|
esac
|
|
+ case $host in
|
|
+ *-*-mingw*)
|
|
+ DYNLOADFILE="dynload_win.o"
|
|
+ extra_machdep_objs="$extra_machdep_objs PC/dl_nt.o"
|
|
+ ;;
|
|
+ esac
|
|
fi
|
|
AC_MSG_RESULT([$DYNLOADFILE])
|
|
if test "$DYNLOADFILE" != "dynload_stub.o"
|