* add libb2 as dep * remove "-Wl,--large-address-aware", default now via makepkg * remove 2to3 logic, no longer in Python
61 lines
1.5 KiB
Diff
61 lines
1.5 KiB
Diff
From b8e732a8ee3d794d85f429ebbe9e31cf88af3d31 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:14 +0530
|
|
Subject: [PATCH 004/N] configure: add `MACHDEP` and `platform` on MINGW
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Co-authored-by: Алексей <alexey.pawlow@gmail.com>
|
|
---
|
|
configure.ac | 15 +++++++++++++++
|
|
1 file changed, 15 insertions(+)
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index be9b319..1083bce 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -327,6 +327,9 @@ then
|
|
*-*-cygwin*)
|
|
ac_sys_system=Cygwin
|
|
;;
|
|
+ *-*-mingw*)
|
|
+ ac_sys_system=MINGW
|
|
+ ;;
|
|
*-apple-ios*)
|
|
ac_sys_system=iOS
|
|
;;
|
|
@@ -366,6 +369,7 @@ then
|
|
linux*) MACHDEP="linux";;
|
|
cygwin*) MACHDEP="cygwin";;
|
|
darwin*) MACHDEP="darwin";;
|
|
+ mingw*) MACHDEP="win32";;
|
|
'') MACHDEP="unknown";;
|
|
esac
|
|
|
|
@@ -777,12 +781,23 @@ if test "$cross_compiling" = yes; then
|
|
wasm32-*-* | wasm64-*-*)
|
|
_host_ident=$host_cpu
|
|
;;
|
|
+ *-*-mingw*)
|
|
+ _host_cpu=
|
|
+ ;;
|
|
*)
|
|
# for now, limit cross builds to known configurations
|
|
MACHDEP="unknown"
|
|
AC_MSG_ERROR([cross build not supported for $host])
|
|
esac
|
|
_PYTHON_HOST_PLATFORM="$MACHDEP${_host_ident:+-$_host_ident}"
|
|
+
|
|
+ case "$host_os" in
|
|
+ mingw*)
|
|
+ # As sys.platform() return 'win32' to build python and extantions
|
|
+ # we will use 'mingw' (in setup.py and etc.)
|
|
+ _PYTHON_HOST_PLATFORM=mingw
|
|
+ ;;
|
|
+ esac
|
|
fi
|
|
|
|
# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
|