MINGW-packages/mingw-w64-python3.13/0013-Ignore-main-program-for-frozen-scripts-on-MINGW.patch
Christoph Reiter 04c9ed3700 python3.13: Add 3.13.7
* add libb2 as dep
* remove "-Wl,--large-address-aware", default now via makepkg
* remove 2to3 logic, no longer in Python
2025-09-08 22:02:30 +02:00

50 lines
1.3 KiB
Diff

From 65ecf8d1fcd87bb2293bf814dc2e6a086e0d1083 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:51:26 +0530
Subject: [PATCH 013/N] Ignore main program for frozen scripts on 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 | 2 +-
configure.ac | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/Makefile.pre.in b/Makefile.pre.in
index ea2b64e..a6810a6 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -431,7 +431,7 @@ PYTHON_OBJS= \
Python/errors.o \
Python/flowgraph.o \
Python/frame.o \
- Python/frozenmain.o \
+ @PYTHON_OBJS_FROZENMAIN@ \
Python/future.o \
Python/gc.o \
Python/gc_free_threading.o \
diff --git a/configure.ac b/configure.ac
index eaed12f..7b135c4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7252,6 +7252,16 @@ case $host in
;;
esac
+dnl Python interpreter main program for frozen scripts
+AC_SUBST(PYTHON_OBJS_FROZENMAIN)
+PYTHON_OBJS_FROZENMAIN="Python/frozenmain.o"
+case $host in
+ *-*-mingw*)
+ dnl 'PC/frozen_dllmain.c' - not yet
+ PYTHON_OBJS_FROZENMAIN=
+ ;;
+esac
+
AC_SUBST([SRCDIRS])
SRCDIRS="\
Modules \