(In reply to Martin Storsjö from comment #3)
> Created attachment 14013 [details]
> Potential fix
>
> Here's a pretty straightforward patch that uses the output filename as basis
> for the temp prefix, which I think should avoid this issue (if there's no
> other aspect I'm overlooking). Does this fix the issue for you?
Thanks Martin, that worked for me for a Wine build. Mikael, can you try building mingw-w64's crt?
(In reply to Martin Storsjö from comment #3)
> Created attachment 14013 [details]
> Potential fix
>
> Here's a pretty straightforward patch that uses the output filename as basis
> for the temp prefix, which I think should avoid this issue (if there's no
> other aspect I'm overlooking). Does this fix the issue for you?
Thanks Martin, that worked for me for a Wine build. Mikael, can you try building mingw-w64's crt?