OpenTrespasser / JurassicParkTrespasser

A git-based fork of the Jurassic Park: Trespasser source code.
98 stars 24 forks source link

Statically link runtime libraries #139

Closed meekee7 closed 3 years ago

meekee7 commented 3 years ago

The compiler and linker settings are adjusted to switch from dynamic linking of CRT and MFC libraries to static linking. This makes it possible to run Debug builds on a system without VS installed. It also removes the requirement to install the VC++ Redistributable package or bundle the required DLLs.

To counteract the resulting binary bloat, some linker flags are added to the Release and Final configurations: linker reference optimization is enabled and incremental linking is disabled. (Note that the first implies the latter.)