StanzaOrg / lbstanza-old

L.B. Stanza Programming Language
Other
216 stars 23 forks source link

build: link statically on Windows #134

Closed tylanphear closed 3 years ago

tylanphear commented 3 years ago

On Windows, link libraries (like -lpthread) statically so that the resulting executable does not require any DLLs at runtime. This is necessary on Windows due to a dependency on libwinpthread-1.dll that results in the compiled executable when linking dynamically. Linking statically avoids having to ship libwinpthread-1.dll and is generally preferable unless we have a good reason to link dynamically.

Fixes #133