Skip to content

Default to static linking and add mingw support#41

Open
ShyAssassin wants to merge 4 commits intoPistonDevelopers:masterfrom
ShyAssassin:master
Open

Default to static linking and add mingw support#41
ShyAssassin wants to merge 4 commits intoPistonDevelopers:masterfrom
ShyAssassin:master

Conversation

@ShyAssassin
Copy link

@ShyAssassin ShyAssassin commented Feb 15, 2026

This PR fixes a couple of issues I ran into while cross-compiling for Windows. When using mingw or cross-compiling (with the prebuilt-libs flag), it now properly uses the mingw-w64 libraries instead of defaulting to the vc2022 ones which don't work with GNU toolchains.

The main change though is switching to static linking by default across all build configurations, with a new dynamic-link feature if you specifically want dynamic linking. Before this, the static-link feature was confusing and src-build would unexpectedly create executables that relied on glfw3.dll at runtime. Now it just statically links everything by default unless you explicitly ask for dynamic linking, which makes way more sense and fixes the weird dependency issues I was hitting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant