merge all .dll file into single exe

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Vrx8
Prole
Posts: 20
Joined: Sat Jun 17, 2017 5:35 am

merge all .dll file into single exe

Post by Vrx8 »

is it possible and allowed ?
grump
Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

Re: merge all .dll file into single exe

Post by grump »

Not easily possible. You could compile LÖVE and all dependencies yourself and use static instead of dynamic linking to get a single executable. It's not an easy task though, I don't recommend to attempt this if you're not an experienced programmer with prior knowledge about this stuff.

I think there are no dependencies that wouldn't legally allow static linking.
Vrx8
Prole
Posts: 20
Joined: Sat Jun 17, 2017 5:35 am

Re: merge all .dll file into single exe

Post by Vrx8 »

alright
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: merge all .dll file into single exe

Post by bartbes »

There are no dependencies that don't legally allow static linking if your game has a license compatible with the LGPL (I am not a lawyer, please check all licenses).

There are 4 reasons for a library to be shipped as a dll in the official windows builds:
  • It's LGPL.
  • Dynamic linking provides an important technical benefit: This is true for lua.dll and the vc++ redistributable. They need to be dynamically linked if you want to dynamically load other lua libraries.
  • You might want to swap it out.
  • It's love.dll. This is useful if you want to use love from another lua interpreter, and means love.exe and lovec.exe don't each include their own copy.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest