https://gcc.gnu.org/g:a80b0de184f0f77cc578ab51cc91cfae0026dc6c
commit r17-5098-ga80b0de184f0f77cc578ab51cc91cfae0026dc6c Author: Zhongteng Gui <[email protected]> Date: Thu Oct 8 13:56:45 2026 +0800 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. * configure: Regenerate. Signed-off-by: Zhongteng Gui <[email protected]> Signed-off-by: Jonathan Yong <[email protected]> Diff: --- configure | 4 +--- configure.ac | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 07f62a81bb9b..6ee5071c58b6 100755 --- a/configure +++ b/configure @@ -11883,9 +11883,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. diff --git a/configure.ac b/configure.ac index cb5c4271090b..f128d838f166 100644 --- a/configure.ac +++ b/configure.ac @@ -3944,9 +3944,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.
