Files
MINGW-packages/mingw-w64-python3.13/0106-Enable-_uuid-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

38 lines
1.1 KiB
Diff

From 2323dbfa6f361b420592e885f4cc94dc76d40fe5 Mon Sep 17 00:00:00 2001
From: Naveen M K <naveen521kk@gmail.com>
Date: Mon, 1 Jan 2024 15:04:43 +0530
Subject: [PATCH 106/N] Enable `_uuid` on MINGW
---
configure.ac | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 4aade3f..1d1b8f9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4516,6 +4516,12 @@ AS_CASE([$MACHDEP],
[CTYPES_LIBS=""]
)
+dnl On MINGW, you need to link againt rpcrt4 for _uuid
+AS_CASE([$MACHDEP],
+ [win32], [UUID_LIBS="-lrpcrt4"],
+ [UUID_LIBS=""]
+)
+
dnl detect sqlite3 from Emscripten emport
PY_CHECK_EMSCRIPTEN_PORT([LIBSQLITE3], [-sUSE_SQLITE3])
@@ -8348,8 +8354,8 @@ PY_STDLIB_MOD([_tkinter],
[], [test "$have_tcltk" = "yes"],
[$TCLTK_CFLAGS], [$TCLTK_LIBS])
PY_STDLIB_MOD([_uuid],
- [], [test "$have_uuid" = "yes"],
- [$LIBUUID_CFLAGS], [$LIBUUID_LIBS])
+ [], [test "$have_uuid" = "yes" -o "$MACHDEP" = "win32"],
+ [$LIBUUID_CFLAGS], [$LIBUUID_LIBS $UUID_LIBS])
dnl compression libs
PY_STDLIB_MOD([zlib], [], [test "$have_zlib" = yes],