MINGW-packages/mingw-w64-python3.13/0138-Try-fix-LDFLAGS-passing-via-environment.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

23 lines
803 B
Diff

From 6fe520af6ec4a7594703647a9cd630de9e20fadf Mon Sep 17 00:00:00 2001
From: Alexey Pavlov <alexpux@gmail.com>
Date: Tue, 2 Sep 2025 12:35:22 +0300
Subject: [PATCH 138/N] Try fix LDFLAGS passing via environment
---
mingw_smoketests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mingw_smoketests.py b/mingw_smoketests.py
index 7acf276..9a4f39e 100644
--- a/mingw_smoketests.py
+++ b/mingw_smoketests.py
@@ -295,7 +295,7 @@ class Tests(unittest.TestCase):
from pathlib import Path
if sysconfig.is_python_build():
- pydir = os.path.dirname(sys._base_executable)
+ pydir = os.path.dirname(sys._base_executable).replace('\\', '/')
os.environ["LDFLAGS"] = "-L " + pydir
with tempfile.TemporaryDirectory() as tmppro: