summarylogtreecommitdiffstats
path: root/0008-MINGW-add-srcdir-PC-to-CPPFLAGS.patch
diff options
context:
space:
mode:
authoratomlong2021-08-28 11:19:04 +0800
committeratomlong2021-08-28 13:15:13 +0800
commit89a67c05174951d172252b1db96ff93cc4ec4bcd (patch)
treed8c39fa79b201cf9aea28c51e7446a252ed8fee4 /0008-MINGW-add-srcdir-PC-to-CPPFLAGS.patch
parentcf8d8d8771493a2aa8370ed323d06dc733a84181 (diff)
downloadaur-89a67c05174951d172252b1db96ff93cc4ec4bcd.tar.gz
Update to 3.9.6
Diffstat (limited to '0008-MINGW-add-srcdir-PC-to-CPPFLAGS.patch')
-rw-r--r--0008-MINGW-add-srcdir-PC-to-CPPFLAGS.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/0008-MINGW-add-srcdir-PC-to-CPPFLAGS.patch b/0008-MINGW-add-srcdir-PC-to-CPPFLAGS.patch
new file mode 100644
index 000000000000..8a3d7b5e5c38
--- /dev/null
+++ b/0008-MINGW-add-srcdir-PC-to-CPPFLAGS.patch
@@ -0,0 +1,43 @@
+From 8dbbd779f9d2b7d01bc143deb70f3e522978f0b8 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:18 +0530
+Subject: [PATCH 008/N] MINGW add srcdir PC to CPPFLAGS
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Co-authored-by: Алексей <alexey.pawlow@gmail.com>
+---
+ configure.ac | 13 +++++++++++++
+ 1 file changed, 13 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 4c964ae..f335c48 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -5642,8 +5642,21 @@ do
+ THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
+ done
+
++case $host in
++ *-*-mingw*)
++ dnl Required for windows builds as Objects/exceptions.c require
++ dnl "errmap.h" from $srcdir/PC.
++ dnl Note we cannot use BASECPPFLAGS as autogenerated pyconfig.h
++ dnl has to be before customized located in ../PC.
++ CPPFLAGS="-I\$(srcdir)/PC $CPPFLAGS"
++ ;;
++esac
++
+ AC_SUBST(SRCDIRS)
+ SRCDIRS="Parser Parser/pegen Objects Python Modules Modules/_io Programs"
++case $host in
++ *-*-mingw*) SRCDIRS="$SRCDIRS PC";;
++esac
+ AC_MSG_CHECKING(for build directories)
+ for dir in $SRCDIRS; do
+ if test ! -d $dir; then
+--
+2.32.0
+