Build a minimal Wine package just for a command line exe

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
LukeS
Newbie
Newbie
Posts: 2
Joined: Sun May 27, 2018 10:47 am

Build a minimal Wine package just for a command line exe

Post by LukeS »

Hi guys,

I have a request to run a command line 64bit exe file in Linux but the total size (Wine + the exe file) is limited. Is it possible to build a minimal Wine package without some modules like network, audio and etc? I've tried to configure with all listed --without-xxx options but the size only decreased from 438M to 418M.

Any helps would be appreciated.
Thanks!
madewokherd
Level 4
Level 4
Posts: 143
Joined: Mon Jun 02, 2008 5:03 pm

Re: Build a minimal Wine package just for a command line exe

Post by madewokherd »

While you can disable individual dll's, you would be individually disabling almost every dll in this case.

I suggest running your program with +loaddll,+pid, so you can see which libraries it uses. You can then manually limit your Wine install to only those .dll.so and .dll files.
madewokherd
Level 4
Level 4
Posts: 143
Joined: Mon Jun 02, 2008 5:03 pm

Re: Build a minimal Wine package just for a command line exe

Post by madewokherd »

Sorry, I meant WINEDEBUG=+loaddll,+pid
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Build a minimal Wine package just for a command line exe

Post by Bob Wya »

Obviously compile with:

Code: Select all

gcc -Os
as well, of course!

Bob
LukeS
Newbie
Newbie
Posts: 2
Joined: Sun May 27, 2018 10:47 am

Re: Build a minimal Wine package just for a command line exe

Post by LukeS »

Hi madewokherd and Bob,

Thanks for your info! I will try your solution.
Locked