Can Wine DLLs, EXEs be compiled for Windows?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Naomi2319
Newbie
Newbie
Posts: 2
Joined: Fri Jul 02, 2021 10:55 am

Can Wine DLLs, EXEs be compiled for Windows?

Post by Naomi2319 »

Hello. When I unzip the source code, I see a "dlls" folder and a "programs" folder. Is there a way to compile these files for Windows?
madewokherd
Level 4
Level 4
Posts: 143
Joined: Mon Jun 02, 2008 5:03 pm

Re: Can Wine DLLs, EXEs be compiled for Windows?

Post by madewokherd »

Yes. For most of them, this is now the default if mingw is installed.

You can also configure Wine to use mingw for everything. I wasn't able to find any up to date information on how to do this, but I think you need to set the CC environment variable, as well as setting --host to the mingw prefix (for example i686-w64-mingw32) and --build to the prefix for system you're building on (for example x86_64-pc-linux-gnu).

There's no support for building ON Windows, it may be possible but it'd take more work.
Naomi2319
Newbie
Newbie
Posts: 2
Joined: Fri Jul 02, 2021 10:55 am

Re: Can Wine DLLs, EXEs be compiled for Windows?

Post by Naomi2319 »

thanks
Locked