On 10/8/26 06:25, Zhongteng Gui wrote:

 From 92e86faf25ae7f5a95c1572fc93b2a2bc62a7670 Mon Sep 17 00:00:00 2001
From: Zhongteng Gui <[email protected]>
Date: Thu, 8 Oct 2026 13:56:45 +0800
Subject: [PATCH v2] mingw: Remove outdated /mingw stuff from FLAGS_FOR_TARGET
  [PR126608]

/mingw is only used by MSYS 1, which has been obsolete for a long time.
The current users of target *-w64-mingw32 either uses their own prefix
(MSYS2 and its derivatives, w64devkit, etc.), or use the default prefix
/usr (Cross-compiling on linux, e.g. Conda-forge).

More cleanups of /mingw may be done in future patches.

ChangeLog:

        PR target/126608
        * configure.ac (x86_64-*mingw* | *-w64-mingw*): Do not use
        /mingw symlink.

Signed-off-by: Zhongteng Gui <[email protected]>
---
  configure.ac | 4 +---
  1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index c5de225b0ac..c81755ebbb6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3948,9 +3948,7 @@ esac
case "$target" in
    x86_64-*mingw* | *-w64-mingw*)
-  # MinGW-w64 does not use newlib, nor does it use winsup. It may,
-  # however, use a symlink named 'mingw' in ${prefix} .
-    FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib 
-L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem 
${prefix}/mingw/include'
+  # MinGW-w64 does not use newlib, nor does it use winsup. No special flags 
needed.
      ;;
    *-mingw*)
    # MinGW can't be handled as Cygwin above since it does not use newlib.

Pushed to master to get rid of the old cygnus tree assumptions.

Reply via email to