https://bugs.winehq.org/show_bug.cgi?id=56279
--- Comment #2 from Vibhav Pant vibhavp@gmail.com --- The issue seems to be due to the configure script deriving the target string from CC by chopping off the -gcc/-clang prefix, which works if CC only contains the executable name: https://gitlab.winehq.org/wine/wine/-/blob/9b8409fce4da18e3d9a914a9e5831d10e...
I have created an MR to fix this: https://gitlab.winehq.org/wine/wine/-/merge_requests/4992