summarylogtreecommitdiffstats
path: root/0015-MINGW-ignore-main-program-for-frozen-scripts.patch
blob: 4477d6a9ede7eeff74b32ac2b9ba0963bb9c06fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
From bd06581551552ea5206d6af8c757181864b11066 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 015/N] MINGW ignore main program for frozen scripts
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 332f9a5..8c8363a 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -352,7 +352,7 @@ PYTHON_OBJS=	\
 		Python/context.o \
 		Python/dynamic_annotations.o \
 		Python/errors.o \
-		Python/frozenmain.o \
+		@PYTHON_OBJS_FROZENMAIN@ \
 		Python/future.o \
 		Python/getargs.o \
 		Python/getcompiler.o \
diff --git a/configure.ac b/configure.ac
index a8c64a7..7fcdd47 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5708,6 +5708,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="Parser Parser/pegen Objects Python Modules Modules/_io Programs"
 case $host in
-- 
2.33.0